-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate With HSQL
PostPosted: Mon Jul 14, 2008 6:37 am 
Newbie

Joined: Mon Jul 14, 2008 6:24 am
Posts: 1
Hi,

I am using HSQLDB for JUNIT test coverage of my project.
The problem i am facing is,

We have our main database is in MSSQL, where in each and every table we are having default date field.
Means as we insert any row MSSQL fill the date coloumn.

So for that date field in our hibernate mapping file we are having property insert/update = false.

Now for junit test these mapping files are creating tables. and using these mapping files only we insert data.

but here i am getting problem since for date field property is insert/update = false in mapping files.

so i am not able set date and getting error cannot insert null in non - nullable coulmn.

is there any other way in HSQLDB to resolve this issue.

Thanks in Advance
Vishwa


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.