Java Reference
In-Depth Information
2.4.1. Mapping JPA 2 entities to the database
So far you've seen how the Bid object is used by the various layers of the application and
that the object is a JPA 2 entity. We haven't shown you the actual code for the Bid entity,
and this is a great time to do exactly that to start exploring how JPA 2 entities are mapped
to the underlying database. The following listing shows the Bid entity.
Listing 2.8. Bid entity
 
Search WWH ::




Custom Search