How do I create an EJB to access a table with an element name "abstract"?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, June 12, 2002 01:18 PM

I have generated an EJB using CMP 2.0 and the data table has an element named "abstract", which is also a JAVA key word. The code compiles and the verifier reports no errors, however when I deploy the following errors appear: return (java.lang.String)com.sun.ejb.PersistenceUtils.deepCopyValue(__getState().abstract); ^ /j2sdkee1.3.1/repository/host/gnrtrTMP//Bean_PM.java:14: ')' expected return (java.lang.String)com.sun.ejb.PersistenceUtils.deepCopyValue(__getState().abstract); ^ ^ /j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:16: expected public void setAbstract(java.lang.String abstract) { ^ ^    More>>

I have generated an EJB using CMP 2.0 and the data table
has an element named "abstract", which is also a JAVA
key word. The code compiles and the verifier reports no errors,
however when I deploy the following errors appear:





return (java.lang.String)com.sun.ejb.PersistenceUtils.deepCopyValue(__getState().abstract);

^


/j2sdkee1.3.1/repository/host/gnrtrTMP//Bean_PM.java:14: ')' expected
return (java.lang.String)com.sun.ejb.PersistenceUtils.deepCopyValue(__getState().abstract);
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:16: expected
public void setAbstract(java.lang.String abstract) {
^

^


/j2sdkee1.3.1/repository/irad-vfs03/gnrtrTMP/Bean_PM.java:276: ')' expected
method = GeoPublish.gpLocalDocumentTabHome.class.getMethod("findAll", new java.lang.Class[] {});
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:276: expected
method = GeoPublish.gpLocalDocumentTabHome.class.getMethod("findAll", new java.lang.Class[] {});
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:276: '{' expected
method = GeoPublish.gpLocalDocumentTabHome.class.getMethod("findAll", new java.lang.Class[] {});
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:277: illegal start of type
} catch ( java.lang.NoSuchMethodException e ) {
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:279: expected
com.sun.ejb.Partition partition = com.sun.ejb.PersistenceUtils.getPartition(this);
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:280: illegal start of type
return (java.util.Collection)partition.ejbFinder(this, method, params);
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:280: expected
return (java.util.Collection)partition.ejbFinder(this, method, params);
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:282: 'class' or 'interface' expected
}
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:283: 'class' or 'interface' expected

^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PMState.java:5: expected
public java.lang.String abstract;
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:3: GeoPublish.gpDocumentTabBean_PM should be declared abstract; it does not define __getPersistentState() in GeoPublish.gpDocumentTabBean_PM
public final class gpDocumentTabBean_PM extends gpDocumentTabBean implements com.sun.ejb.PersistentInstance {
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:14: cannot resolve symbol
symbol : method __getState ()
location: class GeoPublish.gpDocumentTabBean_PM
return (java.lang.String)com.sun.ejb.PersistenceUtils.deepCopyValue(__getState().abstract);
^

^


/j2sdkee1.3.1/repository/host/gnrtrTMP/Bean_PM.java:16: missing method body, or declare abstract
public void setAbstract(java.lang.String abstract) {
^
16 errors
Compilation failed ...

^    <<Less
About | Sitemap | Contact