Hi guys
I have a CMP bean that has super class from where it inherits some member variables and methods. When I am defining the DB mapping of the fields in Visual Cafe I specified the derived fields, but the compilation fails to see that it is derived and complains "field name not found".
One alternative is to not inherit variables from super class. But my super class variables are used by many classes and I never define them in sub classes.. Else I will have to define those variables in all sub classes. Can some one tell me if I have a way out...
Thanks
Shiva
-
CMP bean using inherited fields (2 messages)
- Posted by: Shiva Ramadoss
- Posted on: April 03 2001 12:49 EDT
Threaded Messages (2)
- CMP bean using inherited fields by Somil Nanda on April 05 2001 20:17 EDT
- CMP bean using inherited fields by Tony Brookes on April 12 2001 00:09 EDT
-
CMP bean using inherited fields[ Go to top ]
- Posted by: Somil Nanda
- Posted on: April 05 2001 20:17 EDT
- in response to Shiva Ramadoss
Try Compiling it outside Visual Cafe -
CMP bean using inherited fields[ Go to top ]
- Posted by: Tony Brookes
- Posted on: April 12 2001 00:09 EDT
- in response to Shiva Ramadoss
What is the visibility of the fields?
If they aren't public then it violates the EJB spec and it won't compile.
On the other hand, if they are public then if you class is used outside your EJB server then you break OO rules.
I suspect that is your problem in this instance.
Chz
Tony