Hello. I have a class generated by JAXB from an XSD and there are some
"custom" types that have a wrapper getter and setter methods so it can be
JPA compatible:


    @Transient
    public XMLGregorianCalendar getFiscalYear() {
        return fiscalYear;
    }

    @Basic
    @Column(name = "FISCALYEARITEM")
    @Temporal(TemporalType.DATE)
    public Date getFiscalYearItem() {
        return
XmlAdapterUtils.unmarshall(XMLGregorianCalendarAsGYear.class,
this.getFiscalYear());
    }

    public void setFiscalYearItem(Date target) {

setFiscalYear(XmlAdapterUtils.marshall(XMLGregorianCalendarAsGYear.class,
target));
    }


Now when I try to create the EntityManager and persist any object I got
this exception:

class: MyClass, method: pcgetFiscalYearItem signature: ()Ljava/util/Date;)
Incompatible argument to function


I don't know what to do to fix this issue.
Thanks in advance!
Regards,
Manuel.

-- 
Disclaimer: The information contained in this communication is confidential 
and only for the use of the intended addressee(s).  If you have received 
this communication in error, any disclosure or use of such information is 
strictly prohibited.  Please notify the sender immediately and destroy all 
copies.  Thank you.

Reply via email to