Solved

JDO & Aggregation

Posted on 2004-05-01
6
242 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

685 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