Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > toplink postgre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3599 of 3850
Post > Topic >>

toplink postgres default

by no spam <"thwei(no spam)"@[EMAIL PROTECTED] > Nov 21, 2007 at 11:08 AM

Hi.
Java NetBeans 5.5
Database: PostgreSQL  Version: 8.2


I have field in datatable:

   sysdate timestamp without time zone NOT NULL DEFAULT now(),


How to use DEFAULT value from database in Java entity class.
My field mapping is:

     @[EMAIL PROTECTED]
(name = "sysdate", nullable = false,insertable =
false,updatable=false)
     @[EMAIL PROTECTED]
(Tem****alType.TIMESTAMP)
     private Date sysdate;

I try to use @[EMAIL PROTECTED]
 annotation but not work.
 




 1 Posts in Topic:
toplink postgres default
no spam <"thwei(n  2007-11-21 11:08:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 11:17:01 CDT 2008.