Please help!!! (I hate sending e-mails out like this, but am crunched for time.)

First, I am using Hibernate 2.0.3 and Spring.

I have a interface called PaymentType which has 2 implementing classes- CreditCardPaymentType and EmailPaymentType. I am able to persist new PaymentTypes without issues; however, when associating a PaymentType to another object (Registration), I receive the following exception:

No persister for: com.demandsolutions.merovingian.payment.entity.PaymentType; nested exception is: net.sf.hibernate.MappingException: No persister for: com.demandsolutions.merovingian.payment.entity.PaymentType

Registration.java
------------------------
public class Registration extends BaseEntityObject {
    private PaymentType paymentType;

// other variables and methods......

    // Hibernate Mappings declared in supplementary file!
    public PaymentType getPaymentType() {
        return this.paymentType;
    }

    public void setPaymentType(PaymentType paymentType) {
        this.paymentType = paymentType;
    }

}

Registration.hbm.xml
--------------------------------
<hibernate-mapping>
<class name="com.demandsolutions.merovingian.conference.entity.Registration" table="registration" dynamic-update="true" dynamic-insert="true" >
// other declarations
<any name="paymentType" meta-type="class" id-type="long">
<column name="PAYMENT_TYPE_CLASS"/>
<column name="PAYMENT_TYPE_ID"/>
</any>
</hibernate-mapping>




Any and all help is appreciated! Thanks in advance!



Cheers,
  matthew







-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to