Java Reference
In-Depth Information
After doing so, NetBeans presents the New Entity Class wizard.
At this point, we should specify the values for the Class Name and Package fields
( Customer and com.ensode.jpaweb in our example).
Projects using JPA require a persistence unit. This persistence unit is defined in a
file called persistence.xml . When we create our first JPA entity for the project,
NetBeans detects that no persistence.xml exists and automatically checks the
checkbox labeled Create Persistence Unit . The next step in the wizard allows us to
enter the information necessary to create the persistence unit. This is shown in the
following screenshot:
Search WWH ::

Custom Search