FieldConversion in ReportQueryByCriteria
Hi! When I use a ReportQueryByCriteria about a field of a table, I have seen that OJB doesn't use FieldConversion class defined in repository.xml. Is it possible or is a problem of my configuration? Thank you very much for your help! Joan Brujula Telecom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C-JDBC and OJB
Hi Andy, I did not use it in production, but I evaluated it as a lowcost clustering solution two years ago. I didn't find any issues and assume that it will work like a charm with the latest versions of OJB and C-JDBC too! cheers, Thomas Andy Malakov wrote: Hello All, Anybody successfully used OJB with C-JDBC ( "database cluster middleware that allows any Java application to transparently access a cluster of databases through JDBC [http://c-jdbc.objectweb.org]) ? Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C-JDBC and OJB
Hello All, Anybody successfully used OJB with C-JDBC ( "database cluster middleware that allows any Java application to transparently access a cluster of databases through JDBC [http://c-jdbc.objectweb.org]) ? Thanks, Andy
RE: xdoclet module with Java 1.5
All working happily now! Note to others: andrew sent me his new Xdoclet files, and it was complaining: java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported major.minor version 49.0) So to use these you have to run ant with java_home pointing to jdk1.5! I wish i could ditch 1.4 alltogether! Thanks a lot for your help! Daniel. > -Original Message- > From: Clute, Andrew [mailto:[EMAIL PROTECTED] > Sent: 01 September 2005 16:01 > To: OJB Users List > Subject: RE: xdoclet module with Java 1.5 > > > It is an issue with the xjavadoc module. You need to update that library > to one of the snapshots that has the generics parsing support. I can > email the file I am using, if you want. > > To answer your second question, ues you can use generics just fine in > OJB (due to erasure). Using it here without issue. > > -Andrew > > > > > -Original Message- > > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 01, 2005 10:38 AM > > To: OJB Users List > > Subject: xdoclet module with Java 1.5 > > > > Hi, > > > > I'm trying to use the OJB xdoclet module (from 1.0.3 > > download) with java 5 generics. > > > > The following: > > ArrayList generic = new ArrayList(); > > > > gives an error: > > [ojbdoclet] Error parsing File > > C:\java\pol\src\java\Test.java:Encountered > > "<" at > > line 11, column 27. > > [ojbdoclet] Was expecting one of: > > > > > > Is there a 1.5 compatible version? > > > > Also, can I use generics for collections in OJB classes? > > > > Thanks, > > > > Daniel. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xdoclet module with Java 1.5
It is an issue with the xjavadoc module. You need to update that library to one of the snapshots that has the generics parsing support. I can email the file I am using, if you want. To answer your second question, ues you can use generics just fine in OJB (due to erasure). Using it here without issue. -Andrew > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 01, 2005 10:38 AM > To: OJB Users List > Subject: xdoclet module with Java 1.5 > > Hi, > > I'm trying to use the OJB xdoclet module (from 1.0.3 > download) with java 5 generics. > > The following: > ArrayList generic = new ArrayList(); > > gives an error: > [ojbdoclet] Error parsing File > C:\java\pol\src\java\Test.java:Encountered > "<" at > line 11, column 27. > [ojbdoclet] Was expecting one of: > > > Is there a 1.5 compatible version? > > Also, can I use generics for collections in OJB classes? > > Thanks, > > Daniel. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xdoclet module with Java 1.5
On 9/1/05, Daniel Perry <[EMAIL PROTECTED]> wrote: > I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5 > generics. > > The following: > ArrayList generic = new ArrayList(); > > gives an error: > [ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered > "<" at > line 11, column 27. > [ojbdoclet] Was expecting one of: > > Is there a 1.5 compatible version? This is an problem of XDoclet itself. Basically you need a new XJavadoc jar (1.5, which you can get from here: http://sourceforge.net/projects/xdoclet/). > Also, can I use generics for collections in OJB classes? Well, yes, sort-of. You still need to define the element-class-ref (XDoclet does not use the generics information), but since the generics are lost in the bytecode (compiled to normal classes and casts), they will work. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xdoclet module with Java 1.5
Hi, I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5 generics. The following: ArrayList generic = new ArrayList(); gives an error: [ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered "<" at line 11, column 27. [ojbdoclet] Was expecting one of: Is there a 1.5 compatible version? Also, can I use generics for collections in OJB classes? Thanks, Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : complex group, or subquery, or ... ?
Hi Mattieu, Thank you for reply but this approach doesn't work, I wasn't descriptive enough in my mail but that is exactly what I tried to do, Regards, Sergey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 5:13 AM To: OJB Users List Subject: Réf. : complex group, or subquery, or ... ? Hi, you need to define relationship between T1 / T2 and T1/T3 then use the attribute name for the field (as defined in your repository_user.xml). For instance : T1: class Foo, attribute id <--> F1, with a relationship fooBar1 to the class Bar1 and with a relationship fooBar2 to the class Bar2 T2: class Bar1, T3: class Bar2, your attributes for the reportQuery are : String [] attributes ={"id","count(fooBar1)","count(fooBar2)"}; Cordialement Matthieu PATOU DINQ/DSIN/SIDM/VNVO/VOIN Téléphone 01 30 19 17 91 (29 17 91) "Manukyan, Sergey" <[EMAIL PROTECTED] Pour com> ojb-user@db.apache.org cc 30/08/2005 18:33 Objet complex group, or subquery, or ... Veuillez ? répondre à OJB Users List <[EMAIL PROTECTED] che.org> Folks, I have three tables: TABLE (FIELDS,...) : {(DATA),...} -- T1 (F1) : {(1)} T2 (F1,F2) : {(1,1),(1,2)} T3 (F1,F3) : {(1,10),(1,20),(1,30)} Need to make a report query to select : F1, count(T2), count(T3), So in given example need a result to be: 1, 2 , 3 I attempted to do it in the flowing way but it evidently didn't' work: ReportQueryByCriteria qry = QueryFactory.newReportQuery(T1.class, null); qry.setColumns(new String[] { "F1", "count(T2.*)", "count(T3.*)" } qry.addGroupBy(new String[] { "F1" } Can I use subqueries to do it? If so can anyone please give me a hint how I can do it, or point me in some other way I can do it with OJB, Thank you in advance, Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Réf. : complex group, or subquery, or ... ?
Hi, you need to define relationship between T1 / T2 and T1/T3 then use the attribute name for the field (as defined in your repository_user.xml). For instance : T1: class Foo, attribute id <--> F1, with a relationship fooBar1 to the class Bar1 and with a relationship fooBar2 to the class Bar2 T2: class Bar1, T3: class Bar2, your attributes for the reportQuery are : String [] attributes ={"id","count(fooBar1)","count(fooBar2)"}; Cordialement Matthieu PATOU DINQ/DSIN/SIDM/VNVO/VOIN Téléphone 01 30 19 17 91 (29 17 91) "Manukyan, Sergey" <[EMAIL PROTECTED] Pour com> ojb-user@db.apache.org cc 30/08/2005 18:33 Objet complex group, or subquery, or ... Veuillez ? répondre à OJB Users List <[EMAIL PROTECTED] che.org> Folks, I have three tables: TABLE (FIELDS,...) : {(DATA),...} -- T1 (F1) : {(1)} T2 (F1,F2) : {(1,1),(1,2)} T3 (F1,F3) : {(1,10),(1,20),(1,30)} Need to make a report query to select : F1, count(T2), count(T3), So in given example need a result to be: 1, 2 , 3 I attempted to do it in the flowing way but it evidently didn't' work: ReportQueryByCriteria qry = QueryFactory.newReportQuery(T1.class, null); qry.setColumns(new String[] { "F1", "count(T2.*)", "count(T3.*)" } qry.addGroupBy(new String[] { "F1" } Can I use subqueries to do it? If so can anyone please give me a hint how I can do it, or point me in some other way I can do it with OJB, Thank you in advance, Sergey ** ** LEGAL DISCLAIMER ** ** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]