We're using hbm2java to fetch table DDL from a database and generate java pojos. Every table has a column called id. Every table has a column called lastUpdatedBy. In the database, they are identically defined columns (except id is a primary key.) However, the code being generated is the following:
Curiously, when I fetch data locally, everything works. But when I fetch data from my web service, I get a failure related to the "long" type on lastUpdatedBy. If I manually change the type to Long the webservice connection manager code doesn't choke on the table.
So 2 questions:
1. Why did hbm2java choose different types?
2. Why would my web service, which is running on my machine under jetspeed/tomcat/axis2 , have a problem with "long" when running the code directly doesn't? As far as I know, they are both using the same connection method and config files.
posted 7 years ago
Nevermind, adding a <column ... type="Long"> entity to the reveng.xml file did the trick.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads