-->
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 in Hibernate
PostPosted: Thu May 07, 2009 12:06 pm 
Newbie

Joined: Wed May 06, 2009 10:00 am
Posts: 6
hello, I am trying to do an insert="false" for one column in the table...

<property name="duration" type="integer">
<column name="duration" insert="false"/>
</property>

but just get that the attribut insert is not decleared for the element column, how do I do that? I want the query to not insert something in the column "duration".

:)


Top
 Profile  
 
 Post subject: Re: mapping in Hibernate
PostPosted: Thu May 07, 2009 12:19 pm 
Newbie

Joined: Wed May 06, 2009 6:06 pm
Posts: 4
This is indicated in the hibernate reference document. The insert attribute goes with the property element in the mapping file.


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.