You're welcome. An alternative is to implement your own HibernateJavaTypeMapper. Just grab the source for this class and modify it (perhaps changing the name and package as well) to remove the code that returns BigDecimal, and just code it to return Integers.
Then you also change maven.middlegen.0.hibernate.javatypemapper=middlegen.plugins.hibernate.HibernateJavaTypeMapper to maven.middlegen.0.hibernate.javatypemapper=your.package.YourHibernateJavaTypeMapper and/or the property in your ant script. It is not very difficult to do. You can put any of your own default types this way. Daniel >>> [EMAIL PROTECTED] 04/01/05 3:35 AM >>> Daniel Rosenbaum (01.04.2005 00:13): > Middlegen will use BigDecimal for Oracle numbers that have no bound, > since it is unknown how large the number can go. But if you know the > limit of your number, you could define the column as a NUMBER(3) or > NUMBER(9) or whatever and the HibernateJavaTypeMapper would choose an > int or Integer. This works! Thanks :) -- Regards... Endre Rognerud ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ middlegen-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ middlegen-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/middlegen-user
