-->
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.  [ 5 posts ] 
Author Message
 Post subject: Reverse Engineering Support for Wrappers?
PostPosted: Fri Jan 20, 2006 12:44 pm 
Beginner
Beginner

Joined: Mon Jun 06, 2005 6:48 pm
Posts: 45
Hi All,

Has anyone been able to get wrappers (Long, Integer ect) to work using:

<sql-type jdbc-type="NUMERIC" precision='10' hibernate-type="long" />

I did not see a hibernate-type in the source code for support of wrappers. I can get it to work on idividual columns for tables using:

<table name="TABLE_NAME" >
<column name="COLUMN_NAME" property="propertyname" type="java.lang.Long" />
</table>

But I would like to get the types mapped to wrappers globally so I can then use the table element to map individually.

Thanks,
-Tony


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 4:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the trick is to find out if the underlying table *really* is a NUMERIC column when reported by your driver.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 11:36 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 6:48 pm
Posts: 45
Hi Max,

I checked it and the oracle driver is reporting that the column is NUMERIC.

Thanks,
-Tony


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 12:55 pm 
Beginner
Beginner

Joined: Mon Jun 06, 2005 6:48 pm
Posts: 45
Hi Max,

So what is the hibernate-type for a Long rather than a long?

Thanks,
-Tony


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 1:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
java.lang.Long ? :)

_________________
Max
Don't forget to rate


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