I am using 1.2.1 version of spring roo,
Getting below exception when we execute mvn clean tomcat:run
Caused by: org.hibernate.HibernateException: Wrong column type for column HISTORY. Found: char, expected: varchar2(4)
PK_Roo_Identifier.aj files generates below column,
@Column(name = "HISTORY", nullable = false, length = 4)
private String IsSmbAreaDimPK.history;
dbre.xml file has correct column type,
<column name="HISTORY" primaryKey="false" required="false" scale="0" size="4" type="1,CHAR"/>
Also my ddl statement is,
CREATE TABLE "IS_"."IS_HISTORY"
( "HISTORY" CHAR(1 CHAR),
) SEGMENT CREATION IMMEDIATE
Found the same issue in jira and it got closed in 1.1.1 release,
Not sure why the variable got created as String even it is CHAR type in dbre.xml?
Could you please let me know why length got added as 4 also why it didn't add columnDefinition = “char”?
Please let me know how to fix this issue.