This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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?
 
GeeCON Prague 2014
 
subject: One to many mapping problem