For a new project, I enabled the JPA facet while defining the project and selected a datasource to map from. The database server I use is MySQL 5.x. When I selected import database schema, IDEA correctly identified the tables from my selected datasource, however, the field mapping in the persistent classes is not to my liking. MySQL BIT fields get mapped to Java byte by default and VARCHAR fields get mapped to Java char . I would like BIT fields to get mapped to boolean and VARCHAR fields to get mapped to Java String types by default. I know that IDEA will let me me make these changes via a pulldown list, but I would like to use these mapping types by default every time. Submitting JPA-QL queries using char fields (or converting Strings to char) is messy.
I'm currently using Diana (build 9732) on an Ubuntu 8.04 laptop. JPA mapping screenshot is attached
Thanks very much.