Originally posted by Mike Lin:
Can findByPrimaryKey() CREATE a new Entity Bean??? if we have none Entity Beans at first?
No, findByPrimaryKey() method is supposed to be a read-only method. It is not supposed to create/update the rows in the database. To create() rows in the database,
you should use create() methods in the entity bean.
It is also possible not to have create() methods in an entity bean, if your design does not include inserstion of new rows by the entity beans. U can have read-only entity beans with no create() methods...and have only finder methods and some business methods.
But findByPrimaryKey() is a compulsory method, to be defined in ur entity bean.