Thomas Breitler
2002-09-16 12:55:02 UTC
Hi!
I try to generate some Enterpriease Java Beans using the latest CVS
version of middlegen (and the latest of XDoclet). Connection to Oracle
DB works fine, but all the bean classes generated by middlegen have
duplicated attributes.
An Oracle table called TEST with two attributes ID and NAME will result
in an entity bean like this (comments stripped):
public abstract class TestBean implements javax.ejb.EntityBean {
public abstract java.lang.Long getId();
public abstract void setId(java.lang.Long id);
public abstract java.lang.Long getName();
public abstract void setName(java.lang.String name);
public abstract java.lang.Long getId();
public abstract void setId(java.lang.Long id);
public abstract java.lang.Long getName();
public abstract void setName(java.lang.String name);
}
The classes generated by XDoclet are OK - i.e. extensions like
TestCMP.java and the data object classes doesn't have duplicate
attributes.
Any ideas?
Thomas
I try to generate some Enterpriease Java Beans using the latest CVS
version of middlegen (and the latest of XDoclet). Connection to Oracle
DB works fine, but all the bean classes generated by middlegen have
duplicated attributes.
An Oracle table called TEST with two attributes ID and NAME will result
in an entity bean like this (comments stripped):
public abstract class TestBean implements javax.ejb.EntityBean {
public abstract java.lang.Long getId();
public abstract void setId(java.lang.Long id);
public abstract java.lang.Long getName();
public abstract void setName(java.lang.String name);
public abstract java.lang.Long getId();
public abstract void setId(java.lang.Long id);
public abstract java.lang.Long getName();
public abstract void setName(java.lang.String name);
}
The classes generated by XDoclet are OK - i.e. extensions like
TestCMP.java and the data object classes doesn't have duplicate
attributes.
Any ideas?
Thomas