Weblog

All | Personal | Sun
« LDAP authentication... | Main | Develop Custom Realm... »
20051206 Tuesday December 06, 2005

How to use CMP beans with generated primary key I saw a question about using CMP beans with generated primary key. Therefore, I decided to write one simple application that can explain how to use this feature. More info about generating primary key values in CMP beans is avalaible here here. I would like to note that the user should never rely on the internals of the container code. And if the user chooses to use a generated PK for CMP, it means they do not care about the value, and should not try to access it (other than as an Object).
In this post we will develop EJB module that creates product and purchase order. See Entity relationship diagram:

Posted by pblaha ( Dec 06 2005, 08:12:35 PM CET ) Permalink Comments [0]

Trackback URL: http://blogs.sun.com/pblaha/entry/how_to_use_cmp_beans
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Calendar

RSS Feeds

Search

Links

Navigation

Referers

Older blog entries