Database reverse engineering tool with columnDefinition support

174 views Asked by At

I am trying to generate entities from a MSSQL database. I tried in eclipse and intellij idea with the built in tools for entities generation from database but I am having some issues with the generated entities.

char, nvarchar fields are mapped as string and the @Column annotation doesn't contain the columnDefinition (e.g. columnDefinition = "char") property. This results in a HibernateException when the validation occurs: HibernateException: Wrong column type in for column . Found: char, expected: nvarchar.

Is there a tool that adds this property in @Column annotations? The database has over 1000 tables and that is why I cant do this "by hand".

Thanks for any help/hint.

0

There are 0 answers