aspose file tools
The moose likes Object Relational Mapping and the fly likes One to many mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "One to many mapping problem" Watch "One to many mapping problem" New topic
Author

One to many mapping problem

Predrag Ristic
Greenhorn

Joined: Dec 07, 2009
Posts: 28
I have one to many mapping between Role and RoleFunctions but getRoleFunctions() method doesn't return anything.Can anyone tell me why?Here are the classes:

Role.java


RoleFunctions.java



RoleFunctonsPk.java

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Is it returning null, or is it returning an empty list, or is it throwing an exception? Are there actually associated objects in the database?


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: One to many mapping problem
 
Similar Threads
Can't use Optimistic Locking
using Hibernate with Session Bean
issue with Xdocler Ant Task
Hibernate association mapping
Cannot be cast to java.io.Serializable