When you complete the steps for creating entities from tables, JDeveloper displays messages in the EJB Log window:
The Application Navigator should look similar to the following when all the folders in the project are expanded:
The project now contains these components:
If you double-click ProductsBase.java, it will open in the source editor. By default, JDeveloper uses annotations in Java source files for the JPA mapping model. Among the generated annotations notice the following:
@NamedQueryannotation, which is used for each named query. JDeveloper automatically generates a findAll named query for you, which is useful for testing. You will use this named query later.
@Idannotation specifies that the following field is a primary key.
@Columnannotations specify the characteristics of database table columns.
If you created entities from tables that have a master-detail relationship, other generated annotations may include:
@OneToManyannotation, which specifies that the entity participates in a one-to-many relationship.
@JoinColumnannotations, which specify the details of the master-detail relationship.
Copyright © 1997, 2009, Oracle. All rights reserved.false ,,,,,,,,,,,,,,,