db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karan Malhi <karan.ma...@gmail.com>
Subject Re: jpox cannot find sequence
Date Fri, 16 Sep 2005 10:15:08 GMT
Hi Andy,
It works!!

On 9/16/05, Karan Malhi <karan.malhi@gmail.com> wrote:
> 
> Thanks Andy,
> It works!!
> 
> On 9/16/05, Andy Jefferson <andy@jpox.org> wrote:
> > 
> > > I tried to put it in a jdo file, but it still didnt work.
> > 
> > Karan,
> > 
> > One other thing to do. JPOX doesn't yet load the metadata for a 
> > <sequence>
> > based on the package name. So what you have to do is load a class that 
> > is 
> > specified in the MetaData file. So for example if your metadata file 
> > includes
> > a class Company, then you could do
> > pm.getExtent(Company.class);
> > and JPOX will load the metadata, and find the sequences in the metadata 
> > file. 
> > From that point onwards you can use the sequences in that file. Please 
> > note
> > that you should specify the "datastore-sequence" attribute too.
> > 
> > 
> > --
> > Andy
> > Java Persistent Objects - JPOX
> > 
> 
> 
> 
> -- 
> Karan Malhi
> 



-- 
Karan Malhi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message