• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP entity bens with netbeans 6.7.1  RSS feed

Mahantesh Patil
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I have just started to work on ejbs.I am having problem with CMP entity beans.I am using netbeans 6 IDE.When i create CMP bean al cmp fields are mapped correctly,but no respective ejbcreate() method generated.Even after i change the method with valid arguments i am getting rollback exception.I have been searching all over for help, no luck.Please help me.
I am using java DB and j2ee 1.4.Please have look at the code generated.

public java.lang.String ejbCreate(java.lang.String key) throws CreateException {
if (key == null) {
throw new CreateException("The field \"key\" must not be null");

// TODO add additional validation code, throw CreateException if data is not valid

return null;

public void ejbPostCreate(java.lang.String key) {
// TODO populate relationships here if appropriate

public abstract String getUsn();

public abstract void setUsn(String usn);

public abstract String getFname();

public abstract void setFname(String fname);

public abstract String getLname();

public abstract void setLname(String lname);

public abstract String getAddress();

public abstract void setAddress(String address);

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!