Re: How to save java.awt.Color within another object

2007-06-27 Thread Virgo Smart
Hi Frank, How about defining an attribute in your persistent entity and using that attribute (member variable) to store and retrieve the value appropriate to construct / initialize the java.awt.Color object member variable ? This additional attribute could be persistent like any other attribute

OJB code fix contribution.

2007-01-30 Thread Virgo Smart
Hello, We have done a code fix affecting around 3 files to solve a object materialization related issue we had faced some time back. The fix allows us to create instances of right classes within the class hierarchy during the materialization of objects (with "TPS" and "TPS using hierarchy" s

Re: Re: Circular references issue

2006-12-06 Thread Virgo Smart
Hello, Is there a way to do the same using Persistence Broker APIs ? Thanks and Regards, Gautam. On Wed, 06 Dec 2006 Bruno CROS wrote : >The circular references have to be build in 2 steps : > >First, create instances and link one relation. >Flush (write SQL insert and update) >Second, link w

Re: Re: Re: OJB not returning the correct child types.

2006-11-28 Thread Virgo Smart
Hi Armin, I was able to locate the code in the OJB source. However there are a few things that I cannot understand. Why do we have composite primary keys for the Employee, Executive and Manager entities ? Thanks and Regards, Gautam. On Tue, 28 Nov 2006 Virgo Smart wrote : > >Hi

Re: Re: OJB not returning the correct child types.

2006-11-27 Thread Virgo Smart
schema (if available) and the Java source files to enable me to simulate the scenario at my end ? Thanks a lot for all your help and support. Regards, Gautam. On Tue, 28 Nov 2006 Armin Waibel wrote : >Hi Gautam, > >Virgo Smart wrote: >>Hello, >> >>I tried out the problem

Re: Re: Re: OJB not returning the correct child types.

2006-11-24 Thread Virgo Smart
this is highly appreciated. Thank you for all the support. Regards, Gautam. On Wed, 22 Nov 2006 Virgo Smart wrote : >Hello Armin, > >Apologies for posting a repeat of a similar problem as mentioned in an earlier >post. I had already posted this one before I recieved the reply to the e

Re: Re: OJB not returning the correct child types.

2006-11-22 Thread Virgo Smart
t; > jdbc-type="VARCHAR" > size="255" > /> > > name="isbnCode" > column="ISBN_CODE" > jdbc-type="VARCHAR" > size="255" > /> > >

OJB not returning the correct child types.

2006-11-22 Thread Virgo Smart
Hello, I am facing an issue when trying to retrieve the Drawer object. Instead of retrieving a collection of Toy and Book instances in the stuffInDrawer attribute, collection containing Thing instances is returned. Following is the class descriptor that is used.

Possible OJB limitation when executing SQLs which cannot be mapped to a particular object type.

2006-11-16 Thread Virgo Smart
I have a situation where in I need to execute SQLs on multiple tables using SQL JOIN (or possibly more complicated SQL). The result set contains columns from various tables and its difficult and possibly inappropriate for me to create business / persistence objects out of it. I need raw a resul

OJB: Identity equals method impl.

2006-11-16 Thread Virgo Smart
In my attempt to solve a problem when retrieving object references (collection and simple) from a domain/persistent class, I looked up Identity.java class source as I suspect identity object as the source of the problem. The equals method of the identity class does not seem to take the object