There is a JPA Annotation @Column which has the attribute columnDefination
But then if my database does not support VARCHAR2 datatype my method for recreating schema will fail...
So is there any annotation in hibernate for defination of column which i can use for creating tables. As well as i can map my java datatype with database's data type.. ?
posted 6 years ago
Not sure what you want to define here: columnDefinition is, by design, non-portable database specific DDL. The @Column annotation has a few attributes, for example, length, that you can use for portable customization.