This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "One to many mapping problem" Watch "One to many mapping problem" New topic

One to many mapping problem

Predrag Ristic

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:

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

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?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: One to many mapping problem
It's not a secret anymore!