Thread:
 Note on the light class pattern 
 jkares   07 Aug 2005, 04:04 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: jkares (07 Aug 2005, 04:04) Replies: 0, Views: 37217
Subject: Note on the light class pattern
Yeah this is a gret feature I do use with Hibernate 3 a lot from the
time I discovered it ... I really do recomend it to all of the Hibernate
users for large entitie like a person esp. for those running on a
multi-tier architecture. I use a base Person object for listings and an
PersonExt for detailed views. However still haven't tried it in the
following situ: I have a UniPerson object as an attribute of the User
class, this UniPerson is actually only an interface and the
implementations are Student etc, Student of couse is the light version
the table consists of attributes of my StudentExt class .. so I wonder
what happen if map it .. I hope and assume that when Hibernate loads my
UniPerson object for the User class it woudle be actually allways the
light version of the implementign class. I will test that soon and come
back ...
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]