-->
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: Using hibernate
PostPosted: Sat Jan 31, 2009 7:27 am 
Newbie

Joined: Sat Jan 31, 2009 7:24 am
Posts: 1
Hello,

I have a problem with hibernate:

If I have 2 tables:

Table Facture
id_Factura
id_user
prrize....

Table User
id_usuario
name
surname.....


I must have a Bean Facture with the attribute "User user" or "Long id_user" ???

Thank you very much


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 10:40 am 
Newbie

Joined: Fri Jan 30, 2009 4:18 pm
Posts: 2
Hello!

This is a basic question so I think you should have a look to the doc:
http://www.hibernate.org/hib_docs/v3/reference/en-US/html_single/
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/

@+


Top
 Profile  
 
 Post subject: hibernate collection
PostPosted: Sat Jan 31, 2009 12:24 pm 
Newbie

Joined: Wed Jan 14, 2009 11:20 pm
Posts: 3
Look at this sample with source code, there is an nicely way on how to relate users vs po at:

http://forum.hibernate.org/viewtopic.php?t=994020&highlight=hibernate+sample


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.