Issue « Relationship « JPA Q&A





1. Hibernate MS SQL Join issue    stackoverflow.com

I have two tables in the clients mssql database. The first is a job table - so I created an Job entity which contains the load type and load weight and ...

2. One-to-many relationship issue    forum.hibernate.org

I am using Hibernate version 2.1 I have a one-to-many relationship configured. When I run my code, it gives me the following error: 12:13:11,148 INFO Configuration:595 - processing one-to-many association mappin gs Exception in thread "main" net.sf.hibernate.MappingException: Association refere nces unmapped class: com.pepsi.compensation.PlanComponent at net.sf.hibernate.cfg.Binder.bindCollectionSecondPass(Binder.java:1148 ) at net.sf.hibernate.cfg.Binder$CollectionSecondPass.secondPass(Binder.ja va:1352) at net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1328) at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.ja va:600) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration. java:743) at com.pepsi.compensation.PlanAccessor.configure(PlanAccessor.java:14) at com.pepsi.compensation.PlanAccessor.main(PlanAccessor.java:103) ...