Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3

2003-07-07 Thread Thomas Mahler
this is most likely a problem during the parsing of the repository. please set the debug level for XmlRepositoryHandler to DEBUG to see where the repository problems are. cheers, Thomas Mykola Ostapchuk wrote: Hello, I have a problem with migrating from OJB 0.9.7 to OJB 1.0.rc3. What I did: - re

Re: 1.0 release?

2003-07-07 Thread Thomas Mahler
Hi ow, ow wrote: --- Thomas Mahler <[EMAIL PROTECTED]> wrote: before 1.0 we'll - fix some more bugs - polish the documentation - do some cosmetic refactorings cheers, Thomas Hi, I browsed through the bug database but did not see any targets setup for OJB. we simply do not work in this way.

1:m-relation

2003-07-07 Thread Christian Eugster
i am working on a mysql-database and ojb rc3. i have an 1:m-relation with the following setting in the collection-desriptor of the parent object: auto-retrieve="true" when i try to retrieve an parent-object i get the error-message as follows: (setting auto-retrieve to false there is no error). wh

Problem with 1:m associations

2003-07-07 Thread Julian Exenberger
Hi I am using OJB rc3 and I seem to have a problem with a 1:n associations. I have two classes; "Event" and "AdditionalEventInfo" with Event being the parent of the 1:n. I have created a collection property on Event called "additionalEventInfo" but when I try to query on the JDBC driver (MySql)

Migrating from OJB 0.9.7 to OJB 1.0.rc3

2003-07-07 Thread Mykola Ostapchuk
Hello, I have a problem with migrating from OJB 0.9.7 to OJB 1.0.rc3. What I did: - replaced db-ojb-0.9.7.jar with db-ojb-1.0.rc3.jar. - built new OJB internal DB tables. - replaced old OJB.properties with a new one. - replaced repository.dtd with a new one. - modified repository.xml for a new v

Re: Typo in PersistenceBroker?

2003-07-07 Thread Edson Carlos Ericksson Richter
Yes, thanks, Armin. I've made a research, and even docs direct us to use the Query as parameter, with null for second parameter when no criteria (get all). Thanks. - Original Message - From: "Armin Waibel" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Monday, July 0

Re: newbie: ODMG vs. JDO

2003-07-07 Thread Armin Waibel
Hi, current JDO implementation is a prototype and not ready for production environment (full JDO implementation is scheduled for 2.0). please see (PB/ODMG/JDO comparison) http://db.apache.org/ojb/faq.html or search user list for more info. regards, Armin - Original Message - From: <[E

Re: Question on Tutorial1

2003-07-07 Thread Armin Waibel
Hi, - Original Message - From: "Xu Jie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 9:53 PM Subject: Question on Tutorial1 > > All, > > I am new to this ObJectRelationalBridge (OJB) project. So I used Tutorial1 > to teach myself something about OJB. It works f

Re: Typo in PersistenceBroker?

2003-07-07 Thread Armin Waibel
- Original Message - From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> To: "'OJB Users List'" <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 10:15 PM Subject: Typo in PersistenceBroker? > I'm mostly using getCollectionByQuery( Query ) that returns a collection. > Now, I'm tryin

Re: mixed: PB and ODMG

2003-07-07 Thread Armin Waibel
Hi Joerg, - Original Message - From: "Joerg Lensing" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 3:46 PM Subject: mixed: PB and ODMG > hello, > in an earlier thread, there was a hint to use PB for "simple" > activities, which need not > odmg-t

Re: 1.0 release?

2003-07-07 Thread ow
--- Thomas Mahler <[EMAIL PROTECTED]> wrote: > before 1.0 we'll > - fix some more bugs > - polish the documentation > - do some cosmetic refactorings > > cheers, > Thomas Hi, I browsed through the bug database but did not see any targets setup for OJB. Hence, it's not easy to tell what bugs are

Re: mapping 1:n association with anonymous - again

2003-07-07 Thread Armin Waibel
Hi Reggie, I think someone has modified (fixed?) the anonymous field stuff. Please try latest CVS. If this doesn't work please post again or make an issue on http://scarab.werken.com/scarab/issues/ regards, Armin - Original Message - From: "Reggie Hayes" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: Partial collection problem

2003-07-07 Thread Armin Waibel
Hi Rob, I think this is an known issue, please try latest CVS. regards, Armin - Original Message - From: "Rob Kischuk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 3:31 PM Subject: RE: Partial collection problem > This is a big problem - we have a collection

DateTime conversion problem

2003-07-07 Thread Mykola Ostapchuk
Hello, Can anybody tell me how to map DateTime MySql field in OJB? My realisation is the next: userDateInserted - of type java.util.Date. After setting the Date, OJB inserts right date. But time is 1 hour minus of actual time (minutes and seconds are right). Any suggestions? Regards, Mykol

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
This did the trick. Thank you! Now I just have to understand WHY it did the trick :-) Bonnie MacKellar software engineer Mobius Management Systems, Inc. [EMAIL PROTECTED] > -Original Message- > From: Weaver, Scott [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 5:23 PM > To: 'OJ

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Edson Carlos Ericksson Richter
Yes, I agree. You should try newer release... I'm working in a muli-threaded app using swing, and no problem at all about threads (I'm using cvs HEAD). Edson Richter - Original Message - From: "Bonnie MacKellar" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Monday, J

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
I absolutely think you are right. However, I am not much of a Weblogic expert either, nor am I much of an OJB expert :-(. Trying to understand the interaction is very difficult. I am really just hoping someone else has had (and fixed) this problem. It must be pretty common, I would think. thanks,

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
1) yes, they are in WEB-INF/classes 2) yes, it is in WEB-INF/lib 3) I will try this... thanks, Bonnie MacKellar software engineer Mobius Management Systems, Inc. [EMAIL PROTECTED] > -Original Message- > From: Weaver, Scott [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 5:21 PM >

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Weaver, Scott
Actually, it should look like thisL ClassLoader cl = Thread.currentThread().getContextClassLoader(); AccountUpdater myNewThread = new AccountUpdater(); myNewThread.setContextClassLoader(cl); myNewThreadStart.start(); *===* * Scott T Weaver    * * Ja

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Armin Waibel
Hi, I'm not an expert in web-environments, but this seems like a ClassLoader problem. The thread's ClassLoader try to initialize OJB again. Maybe you have to associate the new created thread with the 'right' ClassLoader using thread.setContextClassLoader(...)??? Maybe I'm completely wrong ;-) reg

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Weaver, Scott
Some simple questions: 1. Where do you have the OJB resources (OJB.properties, repository.xml, etc.)? To make things easy, they should be in the default package of your webapp's WEB-INF/classes directory. 2. Where is your OJB jar? For the most predictable results, it should be in your weba

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
You are right in your analysis, but in fact, the code I just gave you is newer code that I put together to try to see if defaultPersistenceBroker might be the problem. My original code (which generated the exception) looks exactly like your code below!! The problem is more fundamental than this. I

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Edson Carlos Ericksson Richter
I'm being analizing your code... Well, I get my broker using PersistenceBrokerFactory.defaultPersistenceBroker() Have you tried to work with defaultPersistenceBroker()? I know that in some release (I don't know what) things was changed in the way OJB is getting the .xml based on this config... Th

RE: Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
Well, that is precisely why I was trying this - to ensure that I have no brokers spanning threads. My code looks like this : public class AccountUpdater extends Thread { private PersistenceBroker broker = null; public void run() { try { PersistenceBroke

DateTime in OJB

2003-07-07 Thread Mykola Ostapchuk
Hello, Can anybody tell me how to map DateTime MySql field in OJB? My realisation is the next: userDateInserted - of type java.util.Date. After setting the Date, OJB (?) inserts right date. But time is 1 hour minus of actual time (minutes and seconds are right). Any suggestions? Regards, M

Re: Weblogic, threads, and startup errors

2003-07-07 Thread Edson Carlos Ericksson Richter
I don't know about you, but I had all kind of strange errors working with long time broker lives... Now, I'm working as in mnemonic code: public void xyzStore( XYZObject o ) { broker = getBroker(); try { broker.store( o ); } catch() { }finally { broker.close(); // this guarante

Re: Typo in PersistenceBroker?

2003-07-07 Thread Edson Carlos Ericksson Richter
More, should not ManageableCollection extends Collection??? Actually (cvs HEAD) this extends only Serializable (?!?!). My2c, Edson Richter - Original Message - From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> To: "'OJB Users List'" <[EMAIL PROTECTED]> Sent: Monday, July 07,

Weblogic, threads, and startup errors

2003-07-07 Thread Bonnie MacKellar
I posted a question on Thursday about a mysterious error I am getting when I try to obtain a broker in a thread spawned within my application. It was not answered, perhaps because of the holiday, or perhaps because no one else is doing what we are doing. We are running a servlet based application

Typo in PersistenceBroker?

2003-07-07 Thread Edson Carlos Ericksson Richter
I'm mostly using getCollectionByQuery( Query ) that returns a collection. Now, I'm trying to use getCollectionByQuery( Class collectionClass, Query query ), but this one returns a ManageableCollection. Should not this returns a Collection? Thanks, Edson Richter --- Outgoing mail is certified V

newbie: ODMG vs. JDO

2003-07-07 Thread ross
Hi All, I am in the process of setting OJB up. Have the tutorials working. Wondering what the reasons are for using ODMG vs. JDO Will be running on Tomcat with struts/jsp front. Approx 5000 lines in the largest table. Moderate complexity in table relationships. Regards Ross Rotherham

Question on Tutorial1

2003-07-07 Thread Xu Jie
All, I am new to this ObJectRelationalBridge (OJB) project. So I used Tutorial1 to teach myself something about OJB. It works fine according to the online doc in my DOS console. Next I did is to move only needed files (jar, xml ...) to my development environment. After some work, the Tutorial sta

m:n Object Cache

2003-07-07 Thread Aaron Longwell
I have a class "Event", a class "Band" and a class "Performance". Event and Band have an m:n relationship, with a "Performance" represeting an association of an Event and a Band (it stores the amount paid to the band for that event, and the number of attendees for that band). In a web applicati

factory-method implementation

2003-07-07 Thread Gary
I notice that code for a factory to be called for object creation (rather than via the default constructor) is "stubbed into" the XML configuration, but not yet coded in the actual source. Is anyone working on this? If so, is there an ETA? If not, I plan to add it myself... I would anticipate n

Re: Dynamic proxies and references Help

2003-07-07 Thread Edson Carlos Ericksson Richter
I've downloaded CVS Head again, and appear that it's working fine now (if I have any other issue, I'll let you know). Thanks! Edson Richter - Original Message - From: "Jakob Braeuchi" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Saturday, July 05, 2003 6:28 AM Subj

mixed: PB and ODMG

2003-07-07 Thread Joerg Lensing
hello, in an earlier thread, there was a hint to use PB for "simple" activities, which need not odmg-transactions (and therefore better performance) and to use ODMG for the more complex things. How should be the handling? (How do i get the PersistenceBroker? Can there be more than one Transaction

RE: Partial collection problem

2003-07-07 Thread Rob Kischuk
This is a big problem - we have a collection of 200 items that we are retrieving, and the first query only retrieves a single item, with each subsequent query retrieving one more item (e.g. - the fifth query result has 5 items). This seems to be either a very nasty error on my part, or a major bug

mapping 1:n association with anonymous - again

2003-07-07 Thread Reggie Hayes
I sent a message out a couple of days ago describing an error when mappig a 1:n association using the anonymous attribute. Any work arounds? Will this error be fixed in future releases? I am currently using 1.0rc3. Thanks ---

Re: How do I customize insert for Sybase identity columns?

2003-07-07 Thread Armin Waibel
Hi Brain, - Original Message - From: "Brian Chaplin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 2:44 PM Subject: Re: How do I customize insert for Sybase identity columns? > Armin, > Using SequenceManagerInMemoryImpl didn't work. It looks like the commands >

Re: How do I customize insert for Sybase identity columns?

2003-07-07 Thread Eremiychuk
Try to change repository descriptor by setting batch-mode property to false. Batch mode is not supported by some version of Sybase(ASA 7 for example) "Brian Chaplin" <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 07.07.2003 16:44 Please respond to "OJB Users List" To: [E

Re: How do I customize insert for Sybase identity columns?

2003-07-07 Thread Brian Chaplin
Armin, Using SequenceManagerInMemoryImpl didn't work. It looks like the commands issued in the afterInsert callback are on another connection regardless of the memory manager being used. Should I modify the source code somewhere in this stack trace? at org.apache.ojb.broker.util.batch.BatchConne

Re: Loss of precision using TIMESTAMP with Oracle

2003-07-07 Thread Danilo Tommasina
hi nicolas, yep, Oracle doesn't store millis in TIMESTAMP personally I just use a NUMBER field and store the millis time generated by Java (System.currentTimeMillis() or date.getTime() where date is an instance of java.util.Date). doing this you will not be able to read the timestamp directly fo

Loss of precision using TIMESTAMP with Oracle

2003-07-07 Thread Nicolas Girard
Hi, I'm scared to death since i discovered that the timestamp i stored have lost their millisecond informations... I've found the following page, describing an ugly workaround which uses code specific to Oracle: http://weblogs.flamefew.net/bayard/archives/000114.html Could someone help me to dea