1

I have eclipse kepler (really jbdev studio 7 alpha). The JPA Entities from Tables feature is amazing! Very sophisticated. Start it up with right-clicking on a project to which the JPA facet has been added. Then "New->JPA Entities from Tables" and follow the wizard.

There are lots of ways to customize the mapping of tables to entities, including lots of flexibility regarding relations between tables, but one thing I can not find is how to map database datatypes to java datatypes.

The result is that my entities were generated with many primitive datatypes and it's causing me problems.

How to do a "JPA Entities from Tables" and tell the generator to map MySQL "int" to Java "Integer" and not java "int"?

Big pain if I have to go in and edit these manually. :-( There are many attributes in many classes.

1
  • Unfortunately, I did not.
    – april26
    Commented Jun 11, 2014 at 14:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.