Which POJO generator is better?# Java - 爪哇娇娃
m*o
1 楼
All,
I need to modify an old java project to use a new MySQL database. It sounds
simple enough at first, then I found out that the project is currently using
DB2 with all queries hard coded with table and column names. The new
database has different table and column names from the DB2 one. There are
also times when information in one table in DB2 are now in separate tables
in MySQL, or vice versa.
I know that there are actually multiple java projects that are in the same
boat - switching from that old DB2 database to the new MySQL one - so I'm
thinking of creating a data source project that offers all POJO classes for
the MySQL database so it can be used by all the java projects that will need
to be changed in near future.
Any thoughts about the approach? If a separate data source project sounds
like the right choice, which pojo generator is better to use in your
experience?
Big thanks for any input.
I need to modify an old java project to use a new MySQL database. It sounds
simple enough at first, then I found out that the project is currently using
DB2 with all queries hard coded with table and column names. The new
database has different table and column names from the DB2 one. There are
also times when information in one table in DB2 are now in separate tables
in MySQL, or vice versa.
I know that there are actually multiple java projects that are in the same
boat - switching from that old DB2 database to the new MySQL one - so I'm
thinking of creating a data source project that offers all POJO classes for
the MySQL database so it can be used by all the java projects that will need
to be changed in near future.
Any thoughts about the approach? If a separate data source project sounds
like the right choice, which pojo generator is better to use in your
experience?
Big thanks for any input.