Hi,
I currently have the following table :
CREATE TABLE CONTACT (
CONTACT_ID BIGINT NOT NULL AUTO_INCREMENT,
FIRST_NAME VARCHAR(255) NOT NULL,
LAST_NAME VARCHAR(255) NOT NULL,
MIDDLE_NAME VARCHAR(255) NULL,
BIRTHDAY DATETIME NULL,
SOCIAL_ID VARCHAR(255) NULL,
VERSION INT NULL,
PRIMARY KEY(CONTACT_ID)
)
TYPE=InnoDB;
I would like to render the datafield VERSION to the following hbm declaration when I use middlegen :
<version name="version" type="java.lang.Integer" column="VERSION">
<meta attribute="field-description">
@hibernate.version
column="VERSION"
</meta>
</version>
I've seen there is a declaration for that in the velocity template (hibernate.vm) but it seems it's not used.
I think I'm missing something, could you tell me what...
Thanks
The hibernate version is 2.1.4.
Middlegen version 2.1
|