-
regarding cmp fields (6 messages)
- Posted by: hemant jain
- Posted on: June 09 2005 09:05 EDT
can we have getter and setter in an entity bean without having corresponding cmp field in ejb-jar.xml.Threaded Messages (6)
- YUP by Biswa Das on June 09 2005 14:17 EDT
- YUP by hemant jain on June 10 2005 09:30 EDT
-
YUP by Biswa Das on June 10 2005 01:44 EDT
-
yes by hemant jain on June 13 2005 03:08 EDT
-
OK I got your intention by Biswa Das on June 13 2005 10:13 EDT
- thanks by hemant jain on June 14 2005 01:35 EDT
-
OK I got your intention by Biswa Das on June 13 2005 10:13 EDT
-
yes by hemant jain on June 13 2005 03:08 EDT
-
YUP by Biswa Das on June 10 2005 01:44 EDT
- YUP by hemant jain on June 10 2005 09:30 EDT
-
YUP[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 09 2005 14:17 EDT
- in response to hemant jain
But not the other way around -
YUP[ Go to top ]
- Posted by: hemant jain
- Posted on: June 10 2005 09:30 EDT
- in response to Biswa Das
thanks
but i have a different problem. i have gettter n setter for a field wcich is not defined in the ejb-jar.xml. but the field is used in relationships..........is that possible.....
plz provide the sol. -
YUP[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 10 2005 13:44 EDT
- in response to hemant jain
Are you using CMR.
But still AM unable to visualize the circumstance you do not want to declare it in ejb-jar.xml -
yes[ Go to top ]
- Posted by: hemant jain
- Posted on: June 13 2005 03:08 EDT
- in response to Biswa Das
yes i dont want to define that field in ejb-jar.xml but i want to use that field in CMR.......
is it possible.... -
OK I got your intention[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 13 2005 10:13 EDT
- in response to hemant jain
Technically every field which participates in relationship need to have a way to access it otherwise there is no way the container can access.
You do not want client tier to modify the values of the field I suppose.
If yes
Then you can change the security level to access the method. Only getter. protected gettter/setter
If no let me know how you solved the problem -
thanks[ Go to top ]
- Posted by: hemant jain
- Posted on: June 14 2005 01:35 EDT
- in response to Biswa Das
thnks dear
i got my ans.....
actually i got confused.....my question was......like i m having an Ejb which having some cmp fields....but one field i want to use as cmr field in relationships.......i dont want to define this field as cmp field........i just want to define this as a cmr field in ejb-jar.xml.....
and the ans is i can do this.........
any thanks very much..
Hemant