File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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?
 
Don't get me started about those stupid light bulbs.
 
subject: One to many mapping problem