I got over the mapping errors now I get something I don't know where to search for...

mayTest(my.class.Name)java.lang.NullPointerException

at net.sf.hibernate.cfg.Configuration$1.getIdentifierType(Configuration.java:112)

at net.sf.hibernate.type.ManyToOneType.getReferencedType(ManyToOneType.java:23)

at net.sf.hibernate.type.ManyToOneType.getColumnSpan(ManyToOneType.java:31)

at net.sf.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:192)

at net.sf.hibernate.mapping.Collection.validate(Collection.java:255)

at net.sf.hibernate.cfg.Configuration.validate(Configuration.java:621)

at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:785)



Gabriela Chiribau <[EMAIL PROTECTED]> wrote:

I think I am starting to figure it out:
here is the test case:
 
A
^
|
B--C
 
That is B is a subclass of A and is associated with C. When A has the inheritance strategy "class" only the Impl.hbm.xml is created. When I changed it to concrete then the .hbm.xml was created and the error dissapeared.
 
Is it how it is supposed to work or is a bug ?
 
Thank you,
 
Gabriela


Gabriela Chiribau <[EMAIL PROTECTED]> wrote:

net.sf.hibernate.MappingException: Association references unmapped class: my.class.Name

Everything is generated by the Hibernate cartridge, why do I get this error ? :)

(3.0M3)



Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.


Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Reply via email to