Someone else can probably give you a better (more informed?) answer, but I
believe that OJB does not require the .jdo file. It will happily use the
repository_user.xml. Also, the jdo implementation is not complete, and not
yet ready for prime time. I believe there has been some activity recently on
that implementation, but I am surprised to here that it is working for you.
Last I looked, most of the jdo methods were basically empty.

Dave Derry


----- Original Message -----
From: "Bryan Dollery" <[EMAIL PROTECTED]>


> Hi guys,
>
> I need help.
>
> I'm learning how to use OJB. I've got my head around the PersistanceBroker
> API, and ODMG. They're great, I got them to work with (virtually) no
> problems (except when running in a GUI test runner, for some odd reason).
>
> My problem now is JDO, and I'd appreciate any help I can get.
>
> My problem is that it works. I realise that this is an odd problem, most
> people come here when things don't work...
>
> The problem of course is in trying to understand 'why' it works. I use
this
> code to get a manager:
>   private PersistenceManagerFactoryImpl factory;
>   private PersistenceManager manager;
>   ...
>   factory = PersistenceManagerFactoryImpl.getInstance();
>   manager = factory.getPersistenceManager();
>
> Then I just go ahead and start using queries. Why does this work. I've got
> a .jdo file that describes my entities (called sams.jdo), and it's in my
> classpath, but it's not referenced anywhere in my code. I have a
> repository.xml that describes my MySQL connection, and the repository_user
> it also describes the entities (but not in the format that JDO would
> expect).
>
> So, can anyone tell me why this is working?
>
>
> Thanks in advance.
>
> Cheers,
>
> Bryan



--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to