RE: How to contribute code? [Attaching files]

2003-07-21 Thread Charles Anthony
Hi, For Some Reason, the mailing list strips all *.java attatchments. I think you'll have to send your files direct to armin. Cheers, Charles. >-Original Message- >From: Rice Yeh [mailto:[EMAIL PROTECTED] >Sent: 22 July 2003 11:27 >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: How

Re: What is the different between OJB and Torque

2003-07-21 Thread Thomas Mahler
Hi Wara, Torque relies on generated persistent Java classes that contain special code to interact with the rest of the framework. OJB provides persistence for POJOs (Plain old java objects). OJB does also cover more details like polymorphism, inheritance, lazy loading etc. YOu may well use Tor

Re: Problem with JDO ENHANCER

2003-07-21 Thread Thomas Mahler
Hi Antonio, I think there is a typo in your code. It should read as follows: cheers, Thomas Antonio Gallardo wrote: Hi: My first task is to try to create an independent application from OJB. For this I already separed all the files from the tutorial 5 (JDO) to a new location and I am try

Re: updates and optimistic locking

2003-07-21 Thread Thomas Mahler
Hi Bonnie, Your code looks correct. But I'm in doubt about retrieveAccountByNumber(). What happens in this method? What's really strange with the generated SQL that OJB tries to check if there is an existing account with ID=5 But the insert is done with the value ID=1 ! There seems to be some man

Re: weaknesses of ODMG-API?

2003-07-21 Thread Thomas Mahler
Hi Shane, Shane Mingins wrote: An industry colleague told me that "ODMG is dead and that all the guys working on it are now working on JDO". The ODMG group always stated that version 3.0 (which is supported by OJB) would be the last ODMG release. Several members of the ODMG team were / are workin

How to contribute code? [Attaching files]

2003-07-21 Thread Rice Yeh
Hi Armin, Attached are two files. One is PersistentFieldImpl. It has passed NestedFieldsTest test with path separator '/' instead of '::'. The other is SunOneTransactionManagerFactory.java. Ps, I find I cannot attach files from my yahoo mail. So I send this message from another mail. Regards

How does OJB support pagination for larget result sets?

2003-07-21 Thread Weiyang Zhao
Hi, all, My project has potentially huge result sets, so there is a question to use OJB. Suppose a query returns thousands of objects, but the results are always presented in page to page navigation. How do I use OJB efficiently for this scenario? FAQ mentions using getIteratorByQuery() to la

PB query question

2003-07-21 Thread Phil Warrick
Hi all, Here is my model: [A] <1--n> [B] <1--n> [C] <1--1> [D] | | C1 C2 I want to query for A objects using a C1 timestamp field as criteria (C1 is a subclass of C and C does not have the timestamp field) and a D string field as criteria. If the time

[SUMMARY] - Re: Problem with JDO ENHANCER

2003-07-21 Thread Antonio Gallardo
To solve this problem: Be sure you are generating java 1.3 class files. Best Regards, Antonio Gallardo. Antonio Gallardo dijo: > Hi: > > My first task is to try to create an independent application from OJB. > For this I already separed all the files from the tutorial 5 (JDO) to a > new locatio

What is the different between OJB and Torque

2003-07-21 Thread Wara Songkran
Hi. I'm new to OJB and OR mapping technology. I look at torque document and notice that it's similar to OJB persistence broker api. So, please tell me what is the different between these frameworks? Best Regards. Wara Songkran. __ Do you Yahoo!? Yahoo! SiteBuild

[Re-post] How to contribute code? [SunOneTransactionManagerFactory contributed]

2003-07-21 Thread Rice Yeh
--- Rice Yeh <[EMAIL PROTECTED]> wrote: > Hi, > Attached is transaction manager factory > implementation I used for SunOne Ap7. > Just wonder how to contribute code? Is the way I > am > doing right? Or should I post it to dev mailing > list? > > Regards, > Rice > > > > --

Problem with JDO ENHANCER

2003-07-21 Thread Antonio Gallardo
Hi: My first task is to try to create an independent application from OJB. For this I already separed all the files from the tutorial 5 (JDO) to a new location and I am trying to compile and run the sample. I discovered I need JDO ENHANCER with the Product.class before using the simple demo. I w

Re: How to contribute code? [SunOneTransactionManagerFactory contributed]

2003-07-21 Thread Armin Waibel
Hi Rice, your attachment is lost. Can you send me the file directly? I'm interested in your 'Patch for supporting Interface ...' when using PersistentField. regards, Armin - Original Message - From: "Rice Yeh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday

recursive child element mapping

2003-07-21 Thread Durham David Contr 805 CSS/SCBE
Here's my very data structure: categoryId - int name - varchar parentId - int parentId is a recursive reference to categoryId Does anyone know how I would set up the class-descriptor for the collection of children? Here's what I have: I'm not en

Mapping unique constraints or alternate key - Please!

2003-07-21 Thread "Sebastião Carlos Santos"
There are some days am studying OJB, with the main objective of using in a project that we will begin the development of here four weeks ago. In some tests that I accomplished, following the available material in the site, I didn't have great problems. However when coming across with the examp

Re: Database sequences based implementation problem

2003-07-21 Thread Mykola Ostapchuk
Hi Armin, Does it means I can't use SequenceManagerNextValImp with SQL Server 2000 too? Regards, Mykola > MySQL does not support database based key generation > (MySQL supports only Identity columns). > You have to use another sequence manager implementation. > http://db.apache.org/ojb/sequen

updates and optimistic locking

2003-07-21 Thread Bonnie MacKellar
I must be doing something really wrong, because when I write code that I THINK should generate an update statement, an insert statement is generated instead. I am trying to use optimistic locking. I recalled that there was a bug that involved optimistic locking and updates, so I downloaded and buil

RE: weaknesses of ODMG-API?

2003-07-21 Thread Shane Mingins
An industry colleague told me that "ODMG is dead and that all the guys working on it are now working on JDO". Has anyone heard anything that either supports that statement or refutes it? Does it possibly explain the removal of the odmg site that has been gone for a while now? Cheers Shane >Th

RE: Urgent: Example for Report Query

2003-07-21 Thread Gelhar, Wallace Joseph
Try this... String fields[] = new String[]{ /* 0 */ "Name", /* 1 */ "avg(Performances.Payout)", /* 2 */ "avg(Performances.Attendance)", /* 3 */ "ContactPerson", /* 4 */ "ContactPhone"}; criteria = new Criteria(); criteria.addGroupBy(fields[0]); criteria.addGroupB

Re: Urgent: Example for Report Query

2003-07-21 Thread Aaron Longwell
Ron, Using your logic, I'm trying another (less efficient I know) method of accomplishing my task. Here's my code: Criteria criteria = new Criteria(); criteria.addOrderBy("performances.payout", true); Query query = QueryFactory.newQuery(Band.class, criteria, true

Re: Urgent: Example for Report Query

2003-07-21 Thread Aaron Longwell
Ron, Thanks for the prompt response... your code looks great... except for a few items. criteria.addGroupBy() and addOrderBy*() have been deprecated... I think the same methods on the query object are preferred now. That's sort of irrelevant though. I am getting the error: "Error reading from

Re: Urgent: Example for Report Query

2003-07-21 Thread Ron Gallagher
Aaron -- This should create the query you need. String fields[] = new String[]{ /* 0 */ "Name", /* 1 */ "avg(Performances.Payout)", /* 2 */ "avg(Performances.Attendance)", /* 3 */ "ContactPerson", /* 4 */ "ContactPhone"};

Urgent: Example for Report Query

2003-07-21 Thread Aaron Longwell
I cannot figure out how to do a report query. Here's my set up: Class: Band Fields: Name, ContactPerson, ContactPhone Collection: Performances Class: Performance Fields: Payout, Attendance I need to do a report query that will give me 5 columns: Band.Name, Band.ContactPerson, Band.Contac

How to contribute code? [SunOneTransactionManagerFactory contributed]

2003-07-21 Thread Rice Yeh
Hi, Attached is transaction manager factory implementation I used for SunOne Ap7. Just wonder how to contribute code? Is the way I am doing right? Or should I post it to dev mailing list? Regards, Rice - To unsubscribe, e-ma

Newbie : How to generate Primary Keys

2003-07-21 Thread Rupinder Singh Mazara
Hi All I am currently exploring OJB for use in my application, One major concern that I have is how to generate the primary key ! WE have a table as follows Create table xRef { XRefID Varchar2(10) Primary Key ) Values for XRefID are generated by a function get

OJB + JDORI bytecode enhancer

2003-07-21 Thread Brian McCallister
Anyone know the politics of writing an Ant task wrapper around the JDORI bytecode enhancer utility? I know TJDO did it via System calls rather than using the JDORI API directly - not sure why. It seems to me that an Ant task that generated .jdo files from the OJB repository, and then went ahead

indirection-table and schema

2003-07-21 Thread jrmihalick
Does the indirection-table attribute on a pick up a schema name from anywhere or is this something you have to specify in the value of the indirection-table attribute? Example: If my schema name is SYSADM and my indirection table is FOO_BAR, does my indirection-table attribute need to look like

Re: huge fan of ojb, huge

2003-07-21 Thread Alen Ribic
> > i know have a dynamic > > persistence mechanism that writes data to any schema > > on the fly. i don't think cmp supports that! This is very interesting! "any schema"? How you going about this? Or should I say what do you mean? Love to know a bit more on this. --Alen - Original Message

RE: weaknesses of ODMG-API?

2003-07-21 Thread Mahler Thomas
Hi Thorsten, > Hi! > > OJB and ODMG is new for me, but not OR-Mapping! > I have questions about fundamental principles > of the ODMG-concepts/the OJB-Implementation: > > BINDING OF TRANSACTIONS AND THREADS > > Can I use the ODMG-API within a J2EE-EJB-Container? Yes. You can integrate it via J

RE: huge fan of ojb, huge

2003-07-21 Thread Mahler Thomas
Hi Christopher, > > I worked through all of the gory details of getting > ojb wired into jboss. i know have a dynamic > persistence mechanism that writes data to any schema > on the fly. i don't think cmp supports that! > > great job guys!!! thanks for the compliments. Can you share some mor

Re: Database sequences based implementation problem

2003-07-21 Thread Armin Waibel
Hi, MySQL does not support database based key generation (MySQL supports only Identity columns). You have to use another sequence manager implementation. http://db.apache.org/ojb/sequencemanager.html regards, Armin - Original Message - From: "Mykola Ostapchuk" <[EMAIL PROTECTED]> To: <[E

AW: Watch/log SQL-Statements of OJB

2003-07-21 Thread Peter Gaus
Hi Thimo, thanks for your help. I read over this in the FAQs. Peter -Ursprüngliche Nachricht- Von: Thimo König [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Juli 2003 08:58 An: OJB Users List Betreff: RE: Watch/log SQL-Statements of OJB Hi Peter, > Is there a possibility to log/wa

RE: Watch/log SQL-Statements of OJB

2003-07-21 Thread Thimo König
Hi Peter, > Is there a possibility to log/watch SQL statements, which OJB > sents to the DBMS. You can use p6spy (http://www.p6spy.com/) to trace SQL Statments. Have a look at the FAQs (http://db.apache.org/ojb/faq.html) and search for "p6spy". You will find detailed information on using p6spy w