-->
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.  [ 1 post ] 
Author Message
 Post subject: Mapping type names to Type
PostPosted: Fri Jul 20, 2007 12:29 pm 
Beginner
Beginner

Joined: Wed Sep 21, 2005 12:02 am
Posts: 31
Hi,

I am writing a small report generating application. The format input format is essentially an enhanced mapping file with some extra parameters. I am parsing the XML file myself, creating the query and the generating the report based on configuration information in that file.

I am using query.setParameter() to set the values, but I would like to know whether Hibernate provide a method of the form:

Type getTypeForName ( String name )

which would convert from the hibernat type strings as usedin HBM files to the Type class need by the setParameter() method. I know I could do the mapping myself, but if I can get the API to do the work then I will.

Andre


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.