Java Reference
In-Depth Information
Notice how an input field is generated for each property in our entity, which in turn
corresponds to each column in the database table.
As we can see, an input field was generated for the primary key field of
our entity. This field is only generated if the JPA entity does not use a
primary key generation strategy.
For properties in which there is a one-to-many relationship, a multiple select box
is generated (in our example they are empty, since we haven't added any to the
database yet).
After entering some information on the page and clicking on the Create link, a new
customer is inserted into the database and we are directed to the List JSP.
At this point we can see our newly created customer in the list of customers on this
JSP. Notice that the JSP has links to Show , Edit , and Destroy (delete) the entity.
 
Search WWH ::




Custom Search