-->
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: Problem with retrieving data from database
PostPosted: Wed May 14, 2008 6:30 am 
Newbie

Joined: Wed May 14, 2008 6:17 am
Posts: 2
Hi,
i was using Hibernate version 3.2.4.ga and have mapped such a class.

@Embedabble
public class Period {

private Date startDate;

private Date endDate;

.....
}

then i use it


....

@Embedded
private Period period;

...

This worked fine with version 3.2.4.ga . However, because of bug in this version with MySQL and MS SQL Server had to switch the version to 3.2.6.ga . It works with MySQL and MS SQL Server ok, but I got new problem.

I am working with Spring JPA test and using an initialization script fort database. I am using HSQLDB. Thera are 4 choices how to set Period.
It's
startDate endDate
null null
null realDate
realDate realDate

realDate null
It works fine with the first 3 examples. However, when realDate null is used, hibernate returns instead of Period(realDate, null) a Period(null, null).

Have you any idea, where the problem could be?


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.