NullPointerException « Association « JPA Q&A

2. NullPointerException setting associations???

I'm getting a NullPointerException when I try the following query: select tso from as tso where like '%xyz%'" I've enabled debug for hibernate and the output when the problem occurs is as follows: 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.loader.Loader] total objects hydrated: 70 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.impl.SessionImpl] resolving associations for [] 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.transaction.JTATransaction] rollback 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction ...

3. NullPointerException whith simple many-to-one association

public class Journal{ public Journal(){} private long id; private String name; /** * The Publisher of the journal */ private Publisher publisher = new Publisher(); // setters and getters ...

4. Many-to-one association throws NullPointerException

hi, Here are the two related tables mappings :

5. null pointer exception after "resolving associations fo

I'm having problems exercising the following code (details below). Interestingly this works in our Linux environment but does not run out of Eclipse on Windows. Hibernate version: 3 Mapping documents: