First page Back Continue Last page Graphics
What Is Created by Default?
- By default, an Entity Object based on a database view performs all the following directly against the underlying database view:
- The SELECT statement (for findByPrimaryKey())
- The SELECT FOR UPDATE statement (for lock())
- INSERT, UPDATE, and DELETE statements (for doDML())
- All Entity Object implementations extend the EntityImpl.java class.
- You override the doDML()
operations and when
necessary, override
lock() and findByPrimaryKey().
Notes:
What Is Created by Default?
By default, an Entity Object based on a view performs all the following directly against the underlying database view:
The SELECT statement (for findByPrimaryKey())
The SELECT FOR UPDATE statement (for lock())
INSERT, UPDATE, DELETE statements (for doDML())
You need to override the doDML() operations; in some cases, you need to override the findByPrimaryKey() and lock() operations as well. For this, you must generate the Entity Object class.