Hi,
Could you post the code that stimulates this error? It looks like the
query might actually be the problem...
Craig
On Jan 11, 2010, at 9:00 AM, racarlson wrote:
I have the following annotation and variable name (getter/setter)
listed
below, if I change it to add an underscore it works, but with the
column
name different than the getter/setter it gives me an errors.
Hibernate jpa
didn't do this. I also listed the error below, how do I get this to
work
with openjpa, using a different column name than variable, our
project is
large and we can't go through changing all the column names right
now, we
are trying to use openjpa instead of hibernate since its built into
the j2ee
container
private java.sql.Timestamp dateCreated;
@Column(name = "DATE_CREATED")
public java.sql.Timestamp getDateCreated()
{
return this.dateCreated;
}
public void setDateCreated(java.sql.Timestamp dateCreated)
{
this.dateCreated = dateCreated;
}
the error:
<1.0.0 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: Result type "class
Account" does not have any public fields or setter methods for the
projection or aggregate result element "DATE_CREATED", nor does it
have a
generic put(Object,Object) method that can be used, nor does it have a
public constructor that takes the types null.
--
View this message in context:
http://n2.nabble.com/openjpa-ignoring-column-annotation-tp4286639p4286639.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!