Solved

JDO & Aggregation

Posted on 2004-05-01
6
243 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
[X]
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
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

734 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