Entity creation using reverse engineering
Step 2: Give the project name.
Step 3: Click on Next
Step 4: Click on next.
Step 5: Select Platform type as “Generic 2.0”.
If you have created Userlibraries with JPA
required then select type “User Library. And select user library.
If you have not created user library for JPA
libraries then select “Disable library configuration”.I am going with “Disable library
configuration”.
Click on Finish after selecting “Disable library
configuration” type.
Step 6: Project will be opened in JPA perspective.
Step 7: Right click on the project and select Entity
from Tables.
Step 9: Select Oracle connection profile and enter OracleConnection
as the name in text field.
Step 10: Click on Next.
Step 11: Enter db details.
Step 12: After entering db details then click on Test
Connection.
You will get Ping Succeeded success message. If not check db
details and enter correctly.
Step 15:Select Connection as Oracle from dropdown box. After selecting it all the tables will be displayed.
Step 13: Click on Finish and close.
Step 14:Right click on the project and Select Entities
from Tables.
Step 15:Select Connection as Oracle from dropdown box. After selecting it all the tables will be displayed.
Step 16: Select Tables for which you want to create
entities.
Step 17: After
selecting tables click on Next.
Step 18:Click on Next.
Step 19 :
Enter key generator for primarykeys.
Select entity access for field or for property
Slect fetch type.
Select Collection Properties type what you reuired.
Step 20: Enter the package name.
Step 21: Click on Next.
Step 22: Default class names will be created if you want
to change Select the Table and change the name.
Step 23:
Click on Finish.
Entities will be created under specified package.
Thanks,
Sudharsan M
No comments:
Post a Comment