Question

How to ask CF9 ORM (hibernate) to use CHAR(2) as sql column type?

Was it helpful?

Solution

component persistent=true {
    property name="id" fieldtype="id" ormtype="integer" generated="always" generator="identity";
    property name="char2Prop" fieldtype="column" sqltype="char(2)";
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top