-
1. Re: amazing insert SQL generated by JBossCMP
lafr Jun 7, 2003 2:11 PM (in response to sailing)I guess you have stuid twice in your bean and ejb-jar.xml:
first as a CMP-Field and second in the relation.
You must not have the first. -
2. Re: amazing insert SQL generated by JBossCMP
sailing Jun 8, 2003 12:41 PM (in response to sailing)"first as a CMP-Field and second in the relation.
You must not have the first"
I followed u sugguestion,but hava new problem.
I only remove stuid CMP-Field from ejb-jar.xml,when application run,it occure error like "can not found set method is CMP or CMR method".It generated right SQL,only one stuid.
If I only emove stuid parameter from ejbCreate method,it still hava double 'stuid' in Insert Entity SQL.
If I both remove stuid CMP-Field from ejb-jar.xml and stuid parameter from ejbCreate method.It seems generated right SQL,only one stuid,but occure error like "can not found set method is CMP or CMR method".
How can i do ?I write ejb-jar.xml by using xdoclet.