posted 14 years ago
findByPrimaryKey(key) is used to find and return an entity with the given primary key. Instead of primary key class, it returns the entity itself.
You can access all the columns defined for this entity, call a remove (delete the entity ) etc using this return value.