Home Mapping types for Grails
Reply: 1

Mapping types for Grails

Anwar Benhamada
Anwar Benhamada Published in 2018-01-05 08:49:11Z

I'm trying to map an old SQL table in Grails and I find for example that : boolean is mapped into tinyint and not BIT like as stated in the hibernate reference (https://www.tutorialspoint.com/hibernate/hibernate_mapping_types.htm)

I know I can force it by giving the sqlType as constaint but I want to know to what types Grails really map. it would be great if someone gives a list of all types or point to a reference.

here are the 2 Tables :

Original Table

New Table

Mamun Sardar
Mamun Sardar Reply to 2018-01-08 04:41:22Z

Boolean/boolean is mapped to BIT. Please check the reference carefully. https://www.tutorialspoint.com/hibernate/hibernate_mapping_types.htm

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.39503 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO