This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 74668 - CMP bean from DB has invalid create method
Summary: CMP bean from DB has invalid create method
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rochelle Raccah
URL:
Keywords:
Depends on:
Blocks: 75143
  Show dependency tree
 
Reported: 2006-04-10 10:39 UTC by Jan Horvath
Modified: 2006-07-19 17:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2006-04-10 10:39:17 UTC
build 200604100200

-create EJB module, J2EE 1.4
-create CMP Entity Bean From Database - from samples database, table MANUFACTURE 
-ERROR: generated bean has invalid create method:

public int ejbCreate(int manufactureId, java.lang.String name, java.lang.String
addressline1, java.lang.String addressline2, java.lang.String city,
java.lang.String state, java.lang.String zip, java.lang.String phone,
java.lang.String fax, java.lang.String email, java.lang.String rep)  throws
javax.ejb.CreateException {
       if (manufactureId == null) {
            throw new javax.ejb.CreateException("The field \"manufactureId\"
must not be null");
        }
        
        .....
        
        return null;
    }


-return type Should be Integer
Comment 1 Martin Adamek 2006-04-18 13:38:01 UTC
Rochelle, can you please evaluate this regression? I've heard you are working on
this area...? Thanks.
Comment 3 Jan Horvath 2006-07-19 17:12:27 UTC
v