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?
|