|
 |
enterprise_java_beans thread: ejb 2.0 Compliant beans for weblogic
Message #1 by Amit Bhatia <Amit.Bhatia@T...> on Wed, 4 Apr 2001 00:53:32 -0400
|
|
Hey Amit
What I think That you should use Stringified format for all the attribute
s Of
Composite keys.
Like You make a String which is a Concatenation of string form of Differe
nt
fields of Composite keys by getting stringified form by calling toString
method on each attribute.
Suppose fname (String) rollNo (Integer)
String str=3D fname.toString()+roolNo.toString();
use str As Composite key It is Serializable Object.
Also you can consult Chapter 9 Of o'reilly Enterr prise java Beans.
Hope It will Help You out.
Regards
Naveen Kumar
System Analyst
New York
Otherwise you can use hashCode method also to concatenate to make a Comp
osite
key.
Amit Bhatia <Amit.Bhatia@T...> wrote:
> ---------------------------------------------
> Attachment:=A0
> MIME Type:=A0multipart/alternative
> ---------------------------------------------
Hi
I am interested in knowing how to write a Pk file in case i want to deplo
y
an Entity bean which maps to a table having composite primary key. I want
to
know this for Weblogic 6.o with ejb specs 2.0.
If anybody has an example of such a bean please mail me the entire bean
example.
also in ejb specs 2.0 the get and the set methods are abstract.
to access these get and set methods are their signatures to be declared i
n
the Remote interface file???
Thanks in advance
Amit
|
|
 |