-->
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.  [ 3 posts ] 
Author Message
 Post subject: Beginners Question
PostPosted: Wed Feb 16, 2005 2:23 pm 
Newbie

Joined: Wed Feb 16, 2005 2:17 pm
Posts: 1
Do I need a class for every table that I want to create in my database? For example do I have to have a user class if I want to persist users to a user table?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 16, 2005 3:23 pm 
Beginner
Beginner

Joined: Thu Oct 14, 2004 9:50 am
Posts: 43
Yes, i think.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 16, 2005 3:26 pm 
Newbie

Joined: Wed Sep 29, 2004 10:10 am
Posts: 13
Location: Washington D.C. USA
Yes, You will need a separate class for each table with following exception:

If you have a cross reference table defining many to many relationship and if you defined it in hibernate configuration file, you wont need a separate class for that table.

Also, you may want to explore Middlegen to create classes for you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.