Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCEEJBD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
EJB Certification (OCEEJBD)
primary key type can't be primitive type. True?
warren li
Ranch Hand
Posts: 128
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In HFEJB book, I saw "public int ejbCreate() throws CreateException" is considered as wrong. So, is it true that primary key type must be
java
object type, and cannot be primitive type?
Thanks for confirmation.
SCBCD 1.3: 94%<br />SCWCD 1.4: 91%<br />SCJP 5: 95%
warren li
Ranch Hand
Posts: 128
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Found the answer to myself. Thanks.
SCBCD 1.3: 94%<br />SCWCD 1.4: 91%<br />SCJP 5: 95%
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi wareen,
if the return type of the 'ejbCreate' method must be java object type. then how to deal with primary key whose datatype is number at the database end.
should we wrap primary key (the integer value) using java wrapper classes and return it from ejbCreate method.
warren li
Ranch Hand
Posts: 128
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
yes. use the wrapper classes.
SCBCD 1.3: 94%<br />SCWCD 1.4: 91%<br />SCJP 5: 95%
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Entity bean primary class
If Pkey of EB is of primitive type then what's the return type of ejbCreate()
HFE Pg 368 ques 5
ques about primary key class
CMP and primary key
More...