Hi Guys,
I have an already release software that makes use of Hibernate+Postgre, and now I have to make it compatible ALSO with HSQL.
All in all, I managed to get everything working, except the following issue. I have a Product and a ProductDetail entities. And the latter has a reference to the former and everything works like a charm on Postgre. When I create a product (and proddetails) the Hibernate can save them. But when I use the HSQL, it flops:
not-null property references a null or transient value: xx.xxx.xxxx.product.ProductDetail.product
But the thing is, I've inspected the entity on the line:
HibernateUtil.getSession().saveOrUpdate(entity);
And it is a ProductDetail, and its product field IS NOT EMPTY. It contains a valid Product object. And that is no surprise, as I've already written it works with Postgre.
Any clues?