-->
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: oracle db: setzten von sysdate für datumsspalte
PostPosted: Wed Dec 06, 2006 5:12 am 
Newbie

Joined: Tue Dec 05, 2006 12:31 pm
Posts: 6
oracle db:

wie kann ich einer datumspalte den wert sysdate verpassen?

es soll die zeit der datenbank und nicht die des clients verwendet werden.
also nicht new Date()

hat jemand einen tipp?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 10:30 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
man kann Attribute/Spalten als generiert von der DB festgegen. Dann liest Hibernate den Wert von dort aus.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 2:48 am 
Newbie

Joined: Tue Dec 05, 2006 12:31 pm
Posts: 6
hast du vielleicht noch ein kleines stichwort?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 3:13 am 
Newbie

Joined: Tue Dec 05, 2006 12:31 pm
Posts: 6
<property name="color"
type="eg.types.ColorUserType"
not-null="true"
update="false"/>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 3:24 am 
Newbie

Joined: Tue Dec 05, 2006 12:31 pm
Posts: 6
update, insert (optional - defaults to true) : specifies that the mapped columns should be included in SQL UPDATE and/or INSERT statements. Setting both to false allows a pure "derived" property whose value is initialized from some other property that maps to the same colum(s) or by a trigger or other application.


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.