Thought inc.

The Dynamic O/R Mapping Company
     

CocoBase Technical Support Forums
For access to developer site with software download and doc's, please request CocoBase download and password
will be emailed to you. Response to posts will appear when answered by THOUGHT Support team.
NOTE:You must register separately with forum in order to post your questions, please click on register icon below.
Home   Frequently Asked Questions   Search   Edit your profile   Registration is free!  
Email This Page to Someone!
Show a Printable Version
CocoBase Enterprise O/R Forums > CocoBase Questions
CocoAdmin Tool Doesn't Instantiate Class
< Previous Thread     Next Thread >
Author
Thread    Post New Thread     Post A Reply
greg_helton
Member

Registered: Mar 2006
Posts: 1

Using Cocobase 4.5.8, I'm attempting to map an existing map to an existing table and in the dialog where I select the table and the class, when I have selected both and press "Next>", the dialog provides me with the message "Couldn't instantiate class <com.XYZ.Customer>!" Do you have any suggestions that might be helpful to me?

03-13-2006 06:17 PM
Click Here to See the Profile for greg_helton    Find more posts by greg_helton        Edit/Delete Message    Reply w/Quote    IP: Logged
admin
Administrator

Registered: Apr 2001
Posts: 19

Generally speaking you should use the Class Importer and not the map class to table wizard. The general class importer supports all classes and their relationships, whereas the single map class to table only looks at an instance, and it tries to instantiate it with a default constructor.

If your class relies on other classes not in the classpath it will fail, as will it fail if you don't have a default constructor.

For new map development, you should always begin with a class model import, or a table model import or an XMI import - those are class model centric as opposed to class centric. When you import the whole model by pointing it at a classpath/classdir it will be able to do a better job to resolve the class dependencies, etc.

Does that make sense?

THOUGHT Support

03-13-2006 06:46 PM
Click Here to See the Profile for admin    Find more posts by admin        Edit/Delete Message    Reply w/Quote    IP: Logged
All times are PST (US)    Post New Thread     Post A Reply
Forum Jump:
< Previous Thread     Next Thread >

Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author. Messages can be deleted by their author.
Posts: HTML code is OFF. Smilies are OFF. vB code is OFF. [IMG] code is OFF.

Admin Options:
Open / Close Thread
Move Thread
Delete Thread
Edit Thread

< Contact Us - THOUGHT Inc. >

Copyright © Jelsoft Enterprises Limited 2000.
Copyright 2001 All Rights Reserved, THOUGHT Inc.