I am having a very big table some 50 column or so on it and i cannot break that table. So i decided to break my hibernate class into 2 object
1. Customer(name, custnum, id)
2. Customer address(address)
The reason is because i want to show address only if asked for otherwise it will load data into memory.hibernate mapping goes
customer dao is
The problem i face if i run Customer returns 6 result and custadd return 3 only. i was wondering why customer results 6 instead of 3 record which is actual count in db.