I have a problem using Hibernate and PostgreSQL for production and HSQLDB for testing.
I use a top-down approach, allowing Hibernate to create a database schema.
I also use annotations; The display part of hibernate.cfg.xml contains only lines like
<mapping class="package.subpackage.ClassName" />
Hibernate by default builds variables for a variable changing (255) on PostgreSQL, which is not enough for me, so I need to redefine some columns manually using
@Column(columnDefinition = "TEXT") .
But the TEXT type is not valid for HSQLDB, so these tables cannot be created.
Can anyone help solve this problem?
postgresql hibernate hsqldb
Nemanja Nov 18 '10 at 10:27 2010-11-18 10:27
source share