Re: mapping the same class to multiple tables?

2004-06-27 Thread edson . richter
I have a similar solution in my job. I've done in the following way: class A { ... } class A_normal extends A { } class A_history extends A { } Only A_normal and A_history are mapped in repository.xml. So, if I need to manipulate the object, I use class A. To store a normal object, I use and

Re: clear() collection proxy RemovalAware

2004-04-28 Thread edson . richter
Is this already in CVS? This fix is correct? Thanks, Edson Richter After some research, I've found an implementation that works: public void clear() { Collection coll; if(getData()instanceof ManageableCollection) { getData().clear(); // ECER: assure

Latest CVS/CollectionProxy

2004-04-07 Thread edson . richter
Since yesterday (I've downloaded CVS HEAD sources and compiled), I can't get a collection-descriptor using class=org...RemovalAwareList work correctly with proxy=dynamic. The stack trace is: java.lang.ClassCastException at

Re: Latest CVS/CollectionProxy

2004-04-07 Thread edson . richter
, but this is not occuring in older OJB releases... Best regards, Edson Richter Since yesterday (I've downloaded CVS HEAD sources and compiled), I can't get a collection-descriptor using class=org...RemovalAwareList work correctly with proxy=dynamic. The stack trace is: java.lang.ClassCastException

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollect ionPrefetcher.java:338)

2004-03-28 Thread edson . richter
= B.field5 I expect this help. Edson Richter Jakob Braeuchi wrote: hi edson, imo the whole handling of the multi-key criteria is a little bit weird. what should the sql look like in your case ? jakob Edson Carlos Ericksson Richter wrote: Hum... There is some instability here. I don't

Re: MtoNCollectionPrefetcher.buildPrefetchCriteriaMultipleKeys(MtoNCollect ionPrefetcher.java:338)

2004-03-28 Thread edson . richter
is indirection table, and has 5 fields. select * from A join B on A.field1 = B.field1 and A.field2 = B.field2 join C on C.field1 = B.field3 and C.field2 = B.field4 and C.field3 = B.field5 I expect this help. Edson Richter Jakob Braeuchi wrote: hi edson, imo the whole handling

Re: [ann] new release 1.0.RC6

2004-03-28 Thread edson . richter
Hmmm, what about the 1:0..1 and proxies test for null is always false and the afterStore not being called for collections? Are they fixed too? Best regards, Edson Richter Dear all, We've got a new release! Given we find no showstoppers during the next week we will approach the Project

Re: RE : Query Performance

2004-03-17 Thread edson . richter
To see what exactly being going to/from database server, enable P6Spy. I'm using p6spy with sqlprofiler tool, and I get exactly information passing between OJB and database server (not only sql commands, but including data sen't and returned). Edson Richter Hello, I think I need to give you

Re: Re: delete relation in indirection-table

2004-03-04 Thread edson . richter
is mandatory. Edson Richter Hi all, Nope I didn't found any thing on the subject, I found this behaviour while debugging ojb ( thank to eclipse ). And then reading comment in example bundled with ojb. Same behaviour with all ( I played with ) layer ( odmg, PB ). It's should

Re: Non decomposed problem

2004-02-28 Thread edson . richter
familiarized on ODMG could give you more orientation (or confirm is this solution works with ODMG too). Best regards, Edson Richter Hi all, I'm really lost with auto-delete feature... The model: 0,n 0,n Actors Roles The RDBMS schema: actors

Delete object in 1-N relationship not setting referencing objects to null

2004-02-12 Thread edson . richter
. Is this a expected behaviour, or is needed some kind of config I lost? In meantime, I've created a trigger in database to do this job, so it isn't a real problem, but I think it's should be managed by OJB. Thanks for any tips, Edson Richter

Re: Help, I'm stuck and I can't get out! (Infinite Loop)

2004-02-09 Thread edson . richter
, Edson Richter For the slow people in the class, can you please explain this problem in a little more detail? If I have to tweak cache timeouts to get correct behavior on simple references, then there 's a bug hiding in here somewhere. Thanks. Edson Carlos Ericksson Richter wrote: Exists some

Re: FW: NetBeans and OJB

2004-01-10 Thread edson . richter
. Best regards, Edson Richter - Original Message - From: Muhammad Aamir To: OJB Users List Sent: Friday, January 09, 2004 9:38 AM Subject: RE: FW: NetBeans and OJB NetBeans IDE is a wonderful modular application and you can develop your own application on top

Re: Fwd: Using a non-existent collection inside a query

2004-01-10 Thread edson . richter
with this kind of facility, they wants more!). jakob Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fwd: Using a non-existent collection inside a query

2004-01-10 Thread edson . richter
); Collection currentMtoNKeys = null; if (col == null) { if (cds.isMtoNRelation()) { deleteMtoNImplementor(cds, obj); } } ... Edson Richter

Re: Fwd: Using a non-existent collection inside a query

2004-01-10 Thread edson . richter
Interesting is that this code is right (will only occur if cds.getCascadeStore() returns true): private void storeCollectionObject(CollectionDescriptor cds, Object otherObject) { // if cascade store: store associated object if (cds.getCascadeStore()) {

Re: Fwd: Using a non-existent collection inside a query

2004-01-10 Thread edson . richter
affect the OJB behavior. Thanks, Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fwd: Using a non-existent collection inside a query

2004-01-09 Thread edson . richter
again, Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Persisting Date and Time

2004-01-07 Thread edson . richter
, Edson Richter MGR Informática Ltda Hi Fabiano, Try JDBC-TYPE='TIMESTAMP' - and try and use java.sql.Date instead of java.util.Date... I have run into problems before with java.util.Date but YMMV. Good Luck, Rob :) -Original Message- From: Fabiano Fernandes de Souza [mailto

Re: AW: ClassPersistenceNotCapableException: java.lang.Integer not found ...

2003-12-29 Thread edson . richter
refresh=true auto-retrieve=true foreignkey field-id-ref=intActivityIdFk / /reference-descriptor /class-descriptor Best regards, Edson Richter Thanks for your answer. When I change the reference name to I get a MetadataException which

Re: OQLQuery being cached? [orb newbie]

2003-12-29 Thread edson . richter
Are you working with DefaultCacheImpl or EmptyCacheImpl? If you are working with DefaultCacheImpl, take a look at config parameters. Otherwise, are there any exceptions (stack trace), messages (they can be very usefull if you enable higher level of logging as DEBUG). Best regards, Edson Richter

Re: OQLQuery being cached? [orb newbie]

2003-12-29 Thread edson . richter
a try to DTD doc. Is the first place I look when in doubt. Best regards, Edson Richter Thanks for your quick answer, I cheched the OJB.properties file an I was using DefaultCacheImpl I change it to ObjectCacheEmptyImpl and now it is working as I was expecting. Now just to learn the reasons

OJB Rc4 freeze

2003-11-13 Thread edson . richter
on OJB (the fact it not check if all extents are declared), and I really don't know even if it's already fixed on latest sources. Thanks, Edson Richter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail