*
The moose likes Object Relational Mapping and the fly likes One to many mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
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: 4968
    
    1

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: One to many mapping problem
 
Similar Threads
Hibernate association mapping
Cannot be cast to java.io.Serializable
issue with Xdocler Ant Task
using Hibernate with Session Bean
Can't use Optimistic Locking