-->
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: How to persist an object in Hibernate
PostPosted: Sat Dec 26, 2009 5:54 am 
Newbie

Joined: Sat Dec 26, 2009 5:52 am
Posts: 1
I have an class Person which has an Address object in it. How should I persist the Address object using hibernate. The code is as below
Code:
class Person 

  String firstName; 
String lastName; 
Address address; 

 
public class Address 

--- 
--- 
}


Top
 Profile  
 
 Post subject: Re: How to persist an object in Hibernate
PostPosted: Sat Dec 26, 2009 5:12 pm 
Newbie

Joined: Fri Dec 04, 2009 1:58 pm
Posts: 7
Location: Dublin, Ireland
Hi,

your question is a bit wide, and it is replied in detail in the first chapter of hibernate's documentation:
http://docs.jboss.org/hibernate/stable/core/reference/en/html/tutorial.html#tutorial-firstapp

Regards,
Carlos


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.