Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JDO & Aggregation

Posted on 2004-05-01
6
238 Views
Last Modified: 2008-02-01
Hi all

Im new to JDO so please bare with me ;)

Basically I have made a simple booking system with a Customer object, Room Object and a Booking Object

The Booking object has an attribute of Customer and room, the problem is that when i try and store the booking object it throws the following erros

com.solarmetric.kodo.runtime.UserException: The instance of type "kmthreecliffbay.Room" and with id "kmthreecliffbay.Room-958" is not managed by this PersistenceManager. The failed object is included in this Exception.

Any help or guidence would be greatly appreciated

Many thinks in advance
0
Comment
Question by:KrisM82
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
Webstorm earned 50 total points
ID: 11041192
0
 
LVL 14

Assisted Solution

by:Tommy Braas
Tommy Braas earned 50 total points
ID: 11045646
I think that the problem here is that you need to have the PersistenceManager (basically a data access object) create all instances of the object class it manages. So, that being said. Have you created an instance of the kmthreecliffbay.Room without using the persistence manager assigned to that type?
0
 
LVL 13

Expert Comment

by:Webstorm
ID: 11679905
I suggest to split the points: Webstorm, orangehead911
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
session migration servlets 2 42
servlet example 11 49
servlet filter example 37 72
Problem to Alipay 10 44
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question