Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Apache JDBC utils
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="John B. Matthews, post: 5020860"] Having always used JDBC, I wanted to see what a persistence unit looked like. I used the "New Entity Classes from Database Wizard" in NetBeans to generate an entity for a database table named CUSTOMER and clicked the persistence unit button to generate a JPA controller. Entity -> Customer.java Persistence unit -> CustomerJpaController.java Then I used these two classes to fill a JComboBox model, as shown here: <[URL]http://stackoverflow.com/a/2531942/230513[/URL]> The example was easy to create, and I can see several things: 1. The queries, getters, setters and annotations generated in the entity. 2. The findCustomerXxx, create, edit and destroy methods generated in the controller, which appear to correspond roughly to select, insert, update and delete. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Apache JDBC utils
Top