great, thanks!
2006/4/24, Thomas Mahler [EMAIL PROTECTED]:
Hi Dennis,
org.apache.ojb.broker.util.GUIDFactory produces GUIDs that are unique
across different VMs.
cheers,
Thomas
Dennis Bekkering wrote:
Hello all,
I have a situation where i frequently have to merge data from
Folks,
I have a question regarding anonymous keys. Without them I was
successfully using QueryByIdentity to find an object by his PK:
Query query = new QueryByIdentity(example);
retVal = broker.getObjectByQuery(query);
But when I enabled primary keys this approach stopped to work. Any
Hi Dennis,
to use OJB's auto-increment feature (automatic assignment of PK's) you
have to implement a SequenceManager based on class GUIDFactory.
Simply extend AbstractSequenceManager and override
public Object getUniqueValue(...)
Implement
protected int getUniqueId(...)
and throw exception
Hi Bruno,
Bruno CROS wrote:
Hi Armin,
Here's is a schematic example :
Consider a service method that returns an object ProductBean. ProductBean
is not O/R mapped but the reading calls a second method that read O/R
mapped Product object. Then, relations are followed, to find description of
using proxies ?
Oh, i see now. Proxy opens and closes broker well. that's it ?
I didn't think to that. Tsss...
I'm sorry.
It seems that i'm looking for my lost brokers since too much time ago.
I guess i'm going to check all my DAOs and all my transactions again (or may
be someone else now
Bruno CROS wrote:
using proxies ?
Oh, i see now. Proxy opens and closes broker well. that's it ?
I didn't think to that. Tsss...
I'm sorry.
It seems that i'm looking for my lost brokers since too much time ago.
I guess i'm going to check all my DAOs and all my transactions again (or may
be
Hi Armin, thanks for solution , but i'm not sure i did get it all !!
Can you confirm solution?
Well, i understand i have to override setCLosed method to catch when broker
open (is borrowed), throw an exception to save a stacktrace with a catch.
So , PB remembers his last loan. that's it ?
When
I have two classes Product(table=product) and
ProductGroup(table=productgroup) ; these two tables are n:1 relationship
means 1 row on productgroup may has more than 1 rows on 'produc' table .
I want to query to get all fields of product table and 2 field of
productgroup table with some