Im a bit confused about this :
And one more thing, i have something in mind that we could design with a GUI tool, creating entities, defining the relations, defining configurations like the id generation sequence, multiple unique columns, compound key, etc and have the JPA entities generated for you.
Does this kind of tool exist ? Perhaps as an eclipse plugin or something else ?
JPA tooling can be added to an existing Eclipse project in a couple of ways, depending on the type of project you are starting with. If you have a Java project, you can right-click on it and use the "Configure" -> "Convert to JPA project..." menu item to add JPA project capabilities to an existing Java project. If you have a Web project or other WTP based project (known as "faceted" projects), you can simply add the JPA facet to the project in the project properties on the "Facets" node. If you are starting from scratch you can create a JPA project, which is basically just a Java project with JPA tooling added in.
I'm not sure if you are using m2e, but this is the Eclipse Maven integration tooling. There are some known issues using Maven with the JPA tooling in Eclipse, but there are workarounds that may work for you.
As for graphical diagramming tools for developing entities, this is coming to the Eclipse Dali Java Persistence Tools project for the next release - 3.0 (Indigo). You can try this functionality out now by downloading the JPA Diagram Editor. Check out the youtube video (search JPA Diagram Editor) for a quick demo of the functionality.
Sorry for the lack of links, but I can only post 1 per reply as a new user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With