Hi again,

> -----Original Message-----
> From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2003 3:44 PM
> To: 'OJB Users List'
> Subject: RE: DMapImpl
> 
> 
> Hi,
> 
> Is this something that the ODMG API prescribes? 

ODMG just states that any persistence capable object should be allowed as
key and value.
But ODMG does not specify that *all* primitive types (and STrings) must be
handled as persistence capable entities!
(That's one of the things that is changed in JDO!)

OJB is taken advantage of this gap in the spec and frankly tells you "We are
happy to store *references* to everything in a DMap, but the user is
responsible to store the *everything*" ;-)

> Or is it a feature /
> limitation of the current implementation?
> I have assumed that I can simply use a string as the map-key.

You have to implement your own map and provide a table for it.

> This is rather a :-( for me, as I'm converting from a 
> situation where my
> keys are plain strings.

It's not a problem to implement such a map. 
We could easiliy provide utility classes and the respective tables and
mappings.
But we don't do so as a lot of user are already moarning about all the
tables the ODMG implementation requires.

cheers,
Thomas


> 
> Thanks,
> 
> --Tim
> 
> -----Original Message-----
> From: Mahler Thomas [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 17 juni 2003 15:20
> To: 'OJB Users List'
> Subject: RE: DMapImpl
> 
> 
> DMapImpl keys must be real entities! that is there must be a 
> table to store
> them and a class-descriptor provided.
> 
> > -----Original Message-----
> > From: Leeuw van der, Tim [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 17, 2003 3:15 PM
> > To: '[EMAIL PROTECTED]'
> > Cc: 'OJB Users List'
> > Subject: RE: DMapImpl
> > 
> > 
> > Hi Cedric,
> > 
> > Did you ever get an answer to this question? Can the key for 
> > a DMapImpl
> > indeed not be a plain java.lang.String instance??
> > Or is it something in the repository.xml that would need to 
> > be specified?
> > 
> > Regards,
> > 
> > --Tim
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: donderdag 12 juni 2003 10:43
> > To: OJB Users List
> > Subject: Re: DMapImpl
> > 
> > 
> > Sorry, it's the key of the map which can't be a java type.
> > So what is the solution ? I can't find nothing about DMapImpl in the
> > tutorial.
> > 
> > 
> > Selon "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
> > 
> > > Hello,
> > > 
> > > I'm trying to use the DMapImpl class to store java Map 
> > objects, but this
> > > exception is thrown :
> > > 
> > > 
> > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableExcep
> > tion: Could
> > > not
> > > init Identity for given object class java.lang.String: 
> > java.lang.String
> > not
> > > found in OJB Repository
> > > 
> > > Does this mean I can't store String objects as Map values ? 
> > Must I extend
> > > the
> > > String class to add an identifier ? Isn't there any other 
> solution ?
> > > 
> > > Regards,
> > > Cedric
> > > 
> > > -- 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to