-->
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.  [ 4 posts ] 
Author Message
 Post subject: how can i mapping two different classes with the same table
PostPosted: Thu Aug 19, 2004 4:20 am 
Beginner
Beginner

Joined: Sun Aug 01, 2004 5:16 am
Posts: 22
Location: BERLIN
Hi at all,

I want to generate this two object in different classes,
the data for them is all in the same table.
so the table has one primary key.
also i want to use the same session.


table : person
columns : eom(pk),name,age,street,nr,city

javaclasses: person-object(name,age)
address(street,nr,city)

is there any solution for this?

thx all


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 4:26 am 
Beginner
Beginner

Joined: Sun Aug 01, 2004 5:16 am
Posts: 22
Location: BERLIN
i forgot:

i want to use the adress-object as field in the person-object.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 4:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
<component>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 5:07 am 
Beginner
Beginner

Joined: Sun Aug 01, 2004 5:16 am
Posts: 22
Location: BERLIN
a big thanx to you, it works fine
by using :
@hibernate.component


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