Just a quick question;
I have a String property that I have written the XDoclet tags for:
Code:
/**
* @hibernate.property update="false"
* insert="false"
*/
public String getChr()
{
return chr;
}
This generates:
Code:
<property
name="chr"
type="java.lang.String"
update="false"
insert="false"
access="property"
column="chr"
/>
which in turn generates:
Code:
Column | Type | Modifiers
---------------+------------------------+-----------
chr | character varying(255) |
My question is; How can I get rid of the 255? With PostgreSQL, you can define a VARCHAR record without any length, so that it expands to whatever size you need...
I know I can add a LENGTH property to my XDoclet tag, but that would just allow me to set it to a really high number (which I am not sure is a good idea, as I don't know if Postgres will allocate that memory per row whether it needs it or not)
Is declaring the type to be "java.sql.Clob" my only other option?
Thanks for your time, and sorry if this is a regualr (and boring question)... I did a search, but couldn't find anything...
Bloid.