java - hibernate AttributeAccessor annotation example -
java - hibernate AttributeAccessor annotation example -
i'm trying debug org.hibernate.propertyaccessexception
caused via java.lang.classcastexception
in basicpropertyaccessor$basicgetter
class
to i'm trying specify own propertyaccessor annotations in hibernate (4.3.1.final)
my code is:
@id @column(name="id", updatable=false, nullable=false) @type(type = "mypackage.customhibernateintlongtype") @generatedvalue(strategy = generationtype.auto) @attributeaccessor("mypackage.diagnosticaccessor") public long getid() { homecoming this.id; } public void setid(long _id) { this.id = _id; }
the class mypackage.diagnosticaccessor
implements org.hibernate.property.propertyaccessor`
hibernate doesn't seem pay attending @attributeaccessor
annotation.
i tried putting in bogus value @attributeaccessor
, doesn't complain.
does have illustration of working, there other configuration alternative should setting?
any help much appreciated.
java hibernate hibernate-annotations
Comments
Post a Comment