-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Class Per Table anything prevent me from 2 classes per table
PostPosted: Mon Jan 26, 2004 7:39 pm 
Newbie

Joined: Fri Jan 23, 2004 12:16 pm
Posts: 5
I wanted to generate 2 differnet kinds of Classes both mapped to the same table. Is there any thing that keeps me from doing this? ( I think not, but wanted to ask)

Table Person {
ID, (PK)
Fname,
LastName
Phone,
Address,
}

Class BriefPerson {
Integer PK
String LName
String Phone
}

and

Class Person {
..
all columns
..
}

So when I wanted a BriefPerson colleciton of all I am just getting a few
of the column and No collections no extra attributes.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 9:09 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 1:24 pm
Posts: 213
Location: Richardson, TX
Try the Lightweight Class pattern: http://www.hibernate.org/41.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.