Query by Criteria

2009-07-01 Thread Kevin Roll
Two questions regarding OJB: 1. Can the Query by Criteria API be used in conjunction with an existing JDO application? I merely want to gain the query by criteria function, I don't want to change the rest of my app. 2. Is OJB under active development? T

Re: PB Tutorial: Query By Criteria on Object

2004-12-06 Thread Annapoorani Rathi
Hi, Thanks for your inputs. I changed all the primitive data types (not just PK and FK values) used to objects and it worked. Thanks Anna Armin Waibel <[EMAIL PROTECTED]> wrote: Hi Anna, Annapoorani Rathi wrote: > Hi, > > I just started on OJB.. > > In PB Tutorial, the code snippet does n

Re: PB Tutorial: Query By Criteria on Object

2004-12-06 Thread Armin Waibel
Hi Anna, Annapoorani Rathi wrote: Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record and result is null (though the record is present in DB) broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(templ

Re: PB Tutorial: Query By Criteria on Object

2004-12-02 Thread Pulat Yunusov
Your "template" likely refers to an instance with the default value for the primary key field, which is 0, and there is no record with PK equal to zero in your database. Pulat Annapoorani Rathi wrote: Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record a

PB Tutorial: Query By Criteria on Object

2004-12-02 Thread Annapoorani Rathi
Hi, I just started on OJB.. In PB Tutorial, the code snippet does not fetch me the record and result is null (though the record is present in DB) broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(template); result = (Product)broker.g

Query by criteria and collection proxies

2004-11-15 Thread Ashish Rangole
Hi! I am using ojb 1.0.1. I use PB API for querying with in a ODMG transaction. I use collection proxies for my referenced collections (by setting proxy="true" in collection descriptor) and do not use any auto setting explicitly. When I query a certain type of objects and use Criteria for specifyin

Query by Criteria for Reference Object?

2004-02-12 Thread Joe Germuska
In my object model, I have a type "Template" which has a reference to another type, "Size". I want to find all templates which have a specific "Size" I expected this to work: crit.addEqualTo("size", template.getSize()); but it didn't, apparently because there is no FieldDescriptor for