A one-to-one relationships occurs when one entity is related to exactly one occurrence in another entity. “One-to-one” example This is a one-to-one relationship table design, a STOCK table contains exactly one record in STOCK_DETAIL table. Both tables have the same Stock_Id as primary key. In STOCK_DETAIL table, Stock_Id is the primary key and also a [...]
Archive for the ‘Hibernate’ Category
Different between session.get() and session.load()
февруари 5th, 2010
admin Often times, you will notice Hibernate developers mix use of session.get() and session load(), do you wonder what’s the different and when you should use either of it? Different between session.get() and session.load() Actually, both functions are use to retrieve an object with different mechanism, of course. 1. session.load() It will always return a “proxy” [...]
RSS Feed
Twitter

Posted in

