Solved

JDO & Aggregation

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

615 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