Hello,
I am new to using CMR with Xdoclet (1.2.1) and JBOSS. I usta do it the
hard way and manage my own key ids.
While it seems that CMR is superior I am having a hard time getting it
to work. Clearly the samples in the distribution are not very simillar
to what I am seeing out in the real world.
At issue is the fact that since I started trying to use CMR I started
seeing the CMP classes that are generated throwing errors at compile
time that they are looking for their normal value methods and classes.
Xdoclet is not generating any normal value classes though.
Here is the CMR field:
/**
* JobAttributes of this Job
*
* @ejb.interface-method
* @ejb.transaction
* type="Supports"
*
* @ejb.relation
* name="Job-JobAttribute"
* role-name="job-has-attribute"
* target-ejb="JobAttribute"
* target-multiple="no"
* target-role-name="attribute-has-job"
* target-cascade-delete="yes"
* @jboss.relation
* related-pk-field="jobAttributeId"
* fk-column="jobId_fk"
* fk-constraint="true"
*
*/
public abstract java.util.Collection getJobAttributes();
and the JobAttribute entity fk field:
/**
* Returns the jobIdFk
* @todo support OracleClob,OracleBlob on WLS
*
* @return the jobIdFk
*
* @ejb.pk-field
* @ejb.interface-method view-type="local"
* @ejb.persistent-field
* @ejb.persistence column-name="jobId_fk"
*/
public abstract java.lang.Integer getJobIdFk();
the errors:
Compiling 58 source files to
/home/clay/corbu/mystuff/projects/jbossmq/build/ejb/classes
gen-src/com/noi/jobsched/ejb/ds/JobAttributeValue.java [23] cannot
resolve symbol
symbol : class JobNormalValue
location: package ds
private com.noi.jobsched.interfaces.ds.JobNormalValue JobNormalValue;
^
gen-src/com/noi/jobsched/ejb/ds/JobAttributeValue.java [138] cannot
resolve symbol
symbol : class JobNormalValue
location: package ds
public com.noi.jobsched.interfaces.ds.JobNormalValue
getJobNormalValue()
^
gen-src/com/noi/jobsched/ejb/ds/JobAttributeValue.java [142] cannot
resolve symbol
symbol : class JobNormalValue
location: package ds
public void setJobNormalValue(
com.noi.jobsched.interfaces.ds.JobNormalValue JobNormalValue )
^
gen-src/com/noi/jobsched/ejb/ds/JobTaskTimerAttributeValue.java [23]
cannot resolve symbol
symbol : class JobTaskTimerNormalValue
location: package ds
private com.noi.jobsched.interfaces.ds.JobTaskTimerNormalValue
JobTaskTimerNormalValue;
^
gen-src/com/noi/jobsched/ejb/ds/JobTaskTimerAttributeValue.java [138]
cannot resolve symbol
symbol : class JobTaskTimerNormalValue
location: package ds
public com.noi.jobsched.interfaces.ds.JobTaskTimerNormalValue
getJobTaskTimerNormalValue()
^
gen-src/com/noi/jobsched/ejb/ds/JobTaskTimerAttributeValue.java [142]
cannot resolve symbol
symbol : class JobTaskTimerNormalValue
location: package ds
public void setJobTaskTimerNormalValue(
com.noi.jobsched.interfaces.ds.JobTaskTimerNormalValue
JobTaskTimerNormalValue )
^
src/com/noi/jobsched/ejb/ds/JobBean.java [242] cannot resolve symbol
symbol : class JobPK
location: class com.noi.jobsched.ejb.ds.JobBean
public JobPK ejbCreate(JobValue data)
^
gen-src/com/noi/jobsched/ejb/ds/JobTaskTimerAttributeCMP.java [105]
cannot resolve symbol
symbol : method getJobTaskTimerNormalValue ()
location: interface com.noi.jobsched.interfaces.ds.JobTaskTimer
JobTaskTimerAttributeValue.setJobTaskTimerNormalValue(
getJobTaskTimer().getJobTaskTimerNormalValue() );
^
gen-src/com/noi/jobsched/ejb/ds/JobAttributeCMP.java [106] cannot
resolve symbol
symbol : method getJobNormalValue ()
location: interface com.noi.jobsched.interfaces.ds.Job
JobAttributeValue.setJobNormalValue(
getJob().getJobNormalValue() );
^
9 errors
----
any insight or reccomendations are appreciated.
Clay
--
clay graham <[EMAIL PROTECTED]>
new Objectivity, Inc.
noi supports the destruction of all software patents.
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user