-->
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.  [ 3 posts ] 
Author Message
 Post subject: key-column not working for me
PostPosted: Sun Jun 13, 2010 12:25 pm 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
This is having no impact in my reveng.xml file.

It's still generating the ids as BigDecimal

<table name="TABLE_NAME">
<primary-key>
<generator class="sequence">
<param name="sequence">id_seq</param>
</generator>
<key-column name="id" jdbc-type="NUMERIC" type="long"/>
</primary-key>
<column name="CREATED_BY" exclude="true"/>
<column name="CREATED_DATE" exclude="true"/>
<column name="MODIFIED_BY" exclude="true"/>
<column name="MODIFIED_DATE" exclude="true"/>
</table>


Top
 Profile  
 
 Post subject: Re: key-column not working for me
PostPosted: Tue Jun 15, 2010 7:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i'm not sure I understand what you are after ?

show what is generated - most likely the schema, table or column are wrong.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: key-column not working for me
PostPosted: Tue Jun 15, 2010 8:52 am 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
max wrote:
i'm not sure I understand what you are after ?

show what is generated - most likely the schema, table or column are wrong.


this worked once I added a type-mapping section without that it was always giving me big decimals for NUMERICs

but I cannot do anything that gets the key property to be what I want.

<key-column name="id" jdbc-type="NUMERIC" property="uniqueId"/>

it simply ignores the "property" setting.

I want the attribute and instance variable called "uniqueId" but this doesn't work


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