Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "JPA Tools Smoke Test"
Line 1: | Line 1: | ||
Project creation | Project creation | ||
− | *Create a J2EE Utility project | + | *Create a J2EE Utility project or New JPA Project under the "JPA" folder |
*Select the "Utility JPA Project with Java 5.0" configuration | *Select the "Utility JPA Project with Java 5.0" configuration | ||
*Open the JPA Details and JPA Structure views | *Open the JPA Details and JPA Structure views | ||
Line 10: | Line 10: | ||
orm.xml test | orm.xml test | ||
− | * | + | *Create a new orm.xml file in the src or meta-inf directory of your Utility project |
+ | *Paste the following content | ||
+ | TODO | ||
+ | *Verify that the JPA structure displays the correct values | ||
+ | *Edit the firstName mapping and confirm that the file and or UI is updated |
Revision as of 19:23, 10 January 2007
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
TODO
- Verify that the JPA structure displays the correct values
- Edit the firstName mapping and confirm that the file and or UI is updated