Meyer-Willner, Bernhard
2002-08-08 11:31:06 UTC
Hi,
I wonder if this is a known issue. I have a bean called GlasBean (ejb-name
is Glas). Another bean has a one-to-one relationship with the GlasBean.
Problem is, the generated CMR accessors are named setGla and getGla instead
of the appropriate setGlas and getGlas. I looked at the template and the
util methods and it seems there's some messing around going on with
adding/chopping S's depending on the cardinality of the relationship (s
added if multiplity is many). The generated one-to-many relationship
accessor names are all fine, as are all the other one-to-one accessors I
have. Can you tell me why the s gets chopped and maybe give me a hint to
work around this?
Thanks,
Bernie
---
Bernhard Meyer-Willner
Insurance - Financial Services
Logica GmbH
Alster City
Osterbekstrasse 90b
22083 Hamburg (Germany)
(+49) 40-27071-405
(+49) 177-425-9036
mailto:Meyer-***@logica.com
www.logica.de
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
I wonder if this is a known issue. I have a bean called GlasBean (ejb-name
is Glas). Another bean has a one-to-one relationship with the GlasBean.
Problem is, the generated CMR accessors are named setGla and getGla instead
of the appropriate setGlas and getGlas. I looked at the template and the
util methods and it seems there's some messing around going on with
adding/chopping S's depending on the cardinality of the relationship (s
added if multiplity is many). The generated one-to-many relationship
accessor names are all fine, as are all the other one-to-one accessors I
have. Can you tell me why the s gets chopped and maybe give me a hint to
work around this?
Thanks,
Bernie
---
Bernhard Meyer-Willner
Insurance - Financial Services
Logica GmbH
Alster City
Osterbekstrasse 90b
22083 Hamburg (Germany)
(+49) 40-27071-405
(+49) 177-425-9036
mailto:Meyer-***@logica.com
www.logica.de
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.