hsqldb « Column « JPA Q&A





1. specifying Column Length for columns of @Type(type=xxx)    stackoverflow.com

In order to remove few special characters coming from my host database tables into my application, I had to create my own datatype.

@Column(name="LAST_UPDATED_BY", nullable=false, length=24)
@Type(type="com.xx.CleanedString")
public String getLastUpdatedBy() {
    ...

2. HSQLDB identity column quirks - has anyone else seen these?    forum.hibernate.org

I noticed a few small oddities in the way identity columns behave with HSQLDB, just thought I'd post them to see if anyone else has seen these particular behaviors: * If the type of the id is 'long' and the generator class is 'native', SchemaExport tool will try to create a table with an IDENTITY column of type 'BIGINT'. HSQLDB doesn't ...