Hi ranchers, Session beans must have atleast one or more create() methods and Entity beans can have zero or more create() methods. why??
posted 12 years ago
For entity beans, we might not have to create any new data in the database. Calling create() creates a row in the database, along with the ejbObject. How about if we want to update the existing record of John Doe's telephone number? We can call the findByPrimaryKey(primarykey) method defined in your Home interface. You must have findByPrimaryKey method must return the Remote/Local component interface and declare (RemoteException if Remote) and FinderException.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads