-->
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
PostPosted: Thu May 07, 2009 11:22 am 
Newbie

Joined: Thu May 07, 2009 11:12 am
Posts: 2
hallo i've a problem with mapping a propery a want a dateproperty only for inserted hibernate insert a database datetime typical(sql server getDate()) but i dont have understand how config mapping file

<myclass .... >

<property name="CreationDate"
column="CreationDate"
type="DateTime"
not-null="true"
??? i 've tried with formula ...
/>
<prope
</myclass>
thanks for help


Top
 Profile  
 
 Post subject: Re: mapping
PostPosted: Thu May 07, 2009 11:27 am 
Newbie

Joined: Thu May 07, 2009 11:12 am
Posts: 2
i must only to use a custom sql???
example
<sql-insert>INSERT INTO PERSON (NAME, ID) VALUES ( UPPER(?), ? )</sql-insert>


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.