This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
How do I specifically specify the SQL types that I want ? Hibernate generates "approximate" datatypes for both the SQL and Java sides which, to me, is quite annoying. I think I know best which datatype to use ... for example, I want a field in my Java class to be Integer and map it to SMALLINT in the DB.
Also, I tried finding on the net a "mapping table" ... something like this: Java DataType - Hibernate Mapping Type - MySQL datatype String - string - varchar etc etc ...
But, surprisingly I could not find any. Those that I found were very vague ... they go something like
I need a more "precise" table..showing which exact type map to which.