-->
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: Mapping API usage examples ?
PostPosted: Fri Nov 16, 2007 11:31 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Can anyone point me to any examples using the Mapping API directly to dynamically map a table and it's columns at runtime ?

The Java Persistence with Hibernate book briefly gives an example of adding a column to an existing table mapping, but I need to create the entire class/table mapping at runtime.

Thanks in advance.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Last edited by pksiv on Sat Nov 17, 2007 2:33 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 17, 2007 1:39 pm 
Expert
Expert

Joined: Fri Jul 13, 2007 8:18 am
Posts: 370
Location: london
You could build a Dom representation of the mapping at runtime and add it to a Configuration object with addDocument(Dom).


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.