I have defined a domain class which has "java.util.UUID" as its "Id" field.
@Entity
class Response{
@Id
@GeneratedValue(generator = "myUUIDGenerator")
@GenericGenerator(name = "myUUIDGenerator", strategy = "uuid2")
@Column(columnDefinition = "uuid")
private UUID id;
...
}
I am using liquibase to generate the database .
<createTable tableName="response">
<column name="id" type="uuid">
<constraints primaryKey="true" nullable="false"/>
</column>
</createTable>
The table generated in MySQL describes the generated id column as "char(36)".
The problem occurs while running test cases. It says the following and none of the test cases are executed.
Wrong column type in DBNAME_response for column id. Found: char, expected: uuid