Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2007, 10:49 AM
eva eva is offline
Member
 
Join Date: Dec 2007
Posts: 49
eva is on a distinguished road
PK for Entity beans
Is it mandatory to set a primary key for Entity beans? I believe that in CMP, we can simply ignore primary key but for BMP, we should declare primary key. Please correct me.

- PEACE
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-03-2008, 05:32 AM
simi's Avatar
Member
 
Join Date: Dec 2007
Location: Singapore
Posts: 18
simi is on a distinguished road
Send a message via Yahoo to simi
Hi,

Please read following online explanation. If you still have doubt post it hear , we will try our best to explain.

Regards,
Simi
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-03-2008, 05:51 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 249
roots is on a distinguished road
PK is mandatory for both CMP or BMP. findByPrimaryKey() .. it's been long but having a local copy of EJB copy really helped me doing EJB.

The Java Community Process(SM) Program - JSRs: Java Specification Requests - detail JSR# 220
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EJB - Entity Beans III JavaForums Java Blogs 0 04-04-2008 04:10 PM
EJB - Entity Beans II JavaForums Java Blogs 0 04-04-2008 04:10 PM
EJB - Entity Beans I JavaForums Java Blogs 0 04-03-2008 07:21 PM
Entity Beans in JBOSS dcpmt Enterprise JavaBeans 0 11-29-2007 03:49 PM
problem with ejb 3.0 entity beans with manyToMany relationship makcro Enterprise JavaBeans 0 07-26-2007 08:37 PM


All times are GMT +3. The time now is 09:18 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org