-->
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 map a generic sql at rutime
PostPosted: Fri Mar 04, 2011 9:54 am 
Beginner
Beginner

Joined: Sat Jun 24, 2006 7:05 am
Posts: 20
I need to map a generic sql user defined at runtime (only select).
The mapping could result in an HashMap (fieldName/value) or in any other usefull way.
Is it possible ?
Tks
Tullio


Top
 Profile  
 
 Post subject: Re: How to map a generic sql at rutime
PostPosted: Sun Mar 06, 2011 7:31 pm 
Regular
Regular

Joined: Sun Aug 01, 2004 6:49 pm
Posts: 76
You can generate, create and initialize a hibernate configuration mapping whenever you want during runtime. You have to create a mapping file depending on your users choice. Hibernate can deliver all data in a Map-Style model, please see following for details:

http://docs.jboss.org/hibernate/core/3. ... amicmodels

Thomas


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.