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: Embedding without Annotations?
PostPosted: Tue Sep 04, 2007 9:49 am 
Newbie

Joined: Tue Sep 04, 2007 9:43 am
Posts: 1
Hi,

I would like to embed objects in my O/R-Mapping, the way you can do it with @Embeddable/@Embed etc. But my application must not use Java 5, so I cannot use Annotations.

Can I use "embedding" with XML-mapping?
I cannot find any instructions for that, so I fear the answer is no... ?

Thanks,
bee


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 1:18 pm 
Newbie

Joined: Tue Aug 28, 2007 12:54 pm
Posts: 16
Location: Munich, Germany
1. do realize you will be using Hibernate, not JPA.

2. use the "component" XML element.

(page 185 in the book you find on top of this page ;-)

Cheers, Tom.

_________________
www.tomeicher.de


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.