Skip to main content
Jump to: navigation, search

JPA Tools Smoke Test

Project creation

  • Create a J2EE Utility project or New JPA Project under the "JPA" folder
  • Select the "Utility JPA Project with Java 5.0" configuration
  • Open the JPA Details and JPA Structure views

Java Source test

  • Create a new Java class in the project and make it an Entity using the JPA Details UI
  • Create an attribute and make it the Id for the Entity
  • Verify that the appropriate annotations have been inserted into the Java source

orm.xml test

  • Create a new orm.xml file in the src or meta-inf directory of your Utility project
  • Paste the following content


  • Verify that the JPA structure displays the correct values
  • Edit the firstName mapping and confirm that the file and or UI is updated

Back to the top