facebook

CMB tutorial question

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #208706 Reply

    Andrew Cheng
    Participant

    I have being watched

    http://www.myeclipseide.com/images/tutorials/Entity_Bean.html

    , and slide 41/315 suddenly with the change which is different compare
    with myEclipse generated codes.

    public String ejbCreate() throws CreateException {
    return null;
    }

    Question: ❓

    1. How do we know what to type for the setter/getter?
    2. Myeclipse should generate CMB with the getter/setter based on
    data source. Jdeveloper does nicely here.

    #210667

    Riyad Kalla
    Member

    I’ve asked someone to take a look at this.

    #210672

    Greg
    Member

    Answers:

    1. The method signature of the ejbCreate method should always return the type of the primary key. But with container managed persistence, this method should return the null value. Its the container’s responsibility to create the primary key.

    2. The new features in the MyEclipse 3.8beta2 release allow you to point to a database table and generate hibernate mappings for that database source. There isn’t currently the same function for building a CMP from a datasource.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: CMB tutorial question

You must be logged in to post in the forum log in