Solved

JDO & Aggregation

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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 …

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now