Re: Smart Count

2003-11-10 Thread Daniel R. Ambrosio
Hi Olli, Thanks a lot! That´s exactly what I needed! :) Cheers [EMAIL PROTECTED] wrote: Hello Daniel, -Original Message- From: Daniel R. Ambrosio [mailto:[EMAIL PROTECTED] What would be the smarter way to do a count on an entity based on a criteria? I believe that getting the Colle

How to handle constraint violations (ODMG)

2003-11-10 Thread Sören Kress
Hi, I have USER table which containts a column 'email' which should be unique. When I try to write an object to the table using the ODMG api I can catch a TransactionAbortedException. How can I get to the SQL error code? I tried the following, which did not work: try { tx.commit(); } catch (Tr

Re: PersistenceBrokerFactory exception

2003-11-10 Thread Armin Waibel
Hi Carlos, seems the broker-pool is exhausted. OJB version? Do you mix PB-api and ODMG-api in your code? I don't mean > PersistenceBroker broker = ((HasBroker) tx).getBroker(); that's ok. I mean direct use of PersistenceBrokerFactory to create PB instances? Normally the odmg-api close all used P

Mysql4.0?

2003-11-10 Thread Gus Heck
Is MySQL 4.0 supported? I ran the regression tests against my database (/usr/sbin/mysqld Ver 4.0.14-standard for pc-linux on i686) and got the following: junit-no-compile-no-prepare: [junit] Running org.apache.ojb.broker.AllTests [junit] Tests run: 247, Failures: 5, Errors: 2, Time elapsed:

Re: New xdoclet ojb module version

2003-11-10 Thread Brian McCallister
I have been in contact with Erik Hatcher on XDoclet (he is also an Apache member) and he says that there is about 0% chance of getting it into XDoclet 1.2, and he doesn't expect that there will be a 2.0. He was open to putting an OJB module into the XDoclet 2.0 distribution if we can get someon

RE: wrong mapping in postgre

2003-11-10 Thread Gelhar, Wallace Joseph
Hi Ramon, Try using VARBINARY or LONGVARBINARY as the type. BLOB maps to java.sql.Blob, but is not implemented on many jdbc drivers. Wally -Original Message- From: Ramon Cano Granizo [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:57 PM To: OJB Users List Subject: wrong ma

wrong mapping in postgre

2003-11-10 Thread Ramon Cano Granizo
Hello, i'm trying insert a blob record in postgreSQL, but every time i get an SQLException, UnknownType. The repository_user.xml looks like In the class, it's mapped like a byte[], perhaps i'm making a wrong mapping?? Anyone knows a better way? Thanks

Refresh attribute

2003-11-10 Thread Daniel R. Ambrosio
Hello Everyone, Does the attribute "refresh" used in the class descriptor tag works only for the CachePerClass or does it work for all the provided Cache implementations that ships with OJB rc3?? thanks in advance for any help, Daniel

Error at run time by a beginner, next step

2003-11-10 Thread A Leg
Hi Excuse me the first line of error message was missing : now it is complete : Thank's for any help Andre Now I get : [BOOT] WARN: Value "org.apache.ojb.odmg.locking.InMemoryLockMapImpl" is illegal for key "LockMapClass" (should be a class, using default value org.apache.ojb.odmg.locking.Pers

PersistenceBrokerFactory exception

2003-11-10 Thread Boyes, Carl
Hi, Our OJB based application has just gone into system test and we are intermittently experiencing the below error when calling: PersistenceBroker broker = ((HasBroker) tx).getBroker(); Can anyone let me know what I am doing wrong? Is there another way to get the broker from a transaction? Sho

Re: New xdoclet ojb module version

2003-11-10 Thread Brian McCallister
Thank you! Consider it requested for the xdoclet trunk. I will go subscribe to xdoclet-user just to request this. The plugin is wonderful! -Brian On Monday, November 10, 2003, at 10:53 AM, Thomas Dudziak wrote: I've created a new version of the xdoclet ojb module which now also supports the ob

New xdoclet ojb module version

2003-11-10 Thread Thomas Dudziak
I've created a new version of the xdoclet ojb module which now also supports the object-cache tag, and the factory-class, proxy-prefetching-limit and otm-dependent attributes. Thomas Mahler will be so kind to upload the module to the CVS sometime this week. I would have uploaded the changed source

Re: OJB as JDO implementation: status request

2003-11-10 Thread Brian McCallister
Right now there are two JDO implementations in OJB. The one that works is dependent upon the JDO reference implementation so it not always an acceptable option. This one works by using OJB as a plugin back end to the reference implementation. It is full compatible but not fully convenient (righ

Error at run time by a beginner, next step

2003-11-10 Thread A Leg
Hi I put the OJB.properties file. And it seems to find it because the error desappear. Now I get this, and to be honnest I don't see what could be the problem. Thank's for any help Andre Now I get : java.lang.ExceptionInInitializerError at org.apache.ojb.broker.core.PersistenceBrokerFac

OJB as JDO implementation: status request

2003-11-10 Thread Sergey V. Oudaltsov
Hello folks We are starting some project and would love to use some JDO implementation. We like ojb (well, just looking at the docs and the site:) - but concerned about the level of compatibility with Sun specs. We could not find any info on that subject on the web site - so could please anyone gi

Re: RE : Error at run time by a beginner

2003-11-10 Thread A Leg
Thank's Oliver, merci Emmanuel. It' realy a beginer mistake. Andre Emmanuel Dupont wrote: Y're OJB.properties file is not present. -Message d'origine- De : A Leg [mailto:[EMAIL PROTECTED] Envoyé : lundi 10 novembre 2003 16:18 À : [EMAIL PROTECTED] Objet : Error at run time by a beginn

Re: dynamic proxies (simple question)

2003-11-10 Thread Daniel Perry
Hi, >>Perhaps you should look at using proxies on your collections first This would be a nice idea, but the problem is, that if i am right about what is taking time, it is the updating of a set of objects. When a page is submitted, each of about 30 objects are loaded, updated, stored, and the ca

RE: Error at run time by a beginner

2003-11-10 Thread oliver . matz
Hello, > -Original Message- > From: A Leg [mailto:[EMAIL PROTECTED] [..] > [BOOT] ERROR: Cannot get OJB properties file, use default settings! you should start by fixing that one. Make sure that the directory that contains your file OJB.properties (to be found in db-ojb/src/test/org/ap

RE : Error at run time by a beginner

2003-11-10 Thread Emmanuel Dupont
Y're OJB.properties file is not present. -Message d'origine- De : A Leg [mailto:[EMAIL PROTECTED] Envoyé : lundi 10 novembre 2003 16:18 À : [EMAIL PROTECTED] Objet : Error at run time by a beginner Hi I make my first try, so I arrive to compile and to run it, but it fail somewhere. I u

RE: dynamic proxies (simple question)

2003-11-10 Thread Gelhar, Wallace Joseph
Hi Daniel, Perhaps you should look at using proxies on your collections first (this will require no refactoring, just add proxy="true" to your collection descriptors) and then possible proxy your references (requires interface) before looking at using dynamic proxies on all classes. This seems to

Error at run time by a beginner

2003-11-10 Thread A Leg
Hi I make my first try, so I arrive to compile and to run it, but it fail somewhere. I use the presistent broker, only. and I use the same Product base than the tutorial one. Does somebody understand where is my mistake ? Andre [BOOT] ERROR: Cannot get OJB properties file, use default settings

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello, > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > > One more question: > > In the class employee i have > private Job job; > > If i proxy this Job reference, should it become: > private IJob job; // where IJob is an interface to Job class. yes. > So, if i un

Re: dynamic proxies (simple question)

2003-11-10 Thread Daniel Perry
One more question: In the class employee i have private Job job; If i proxy this Job reference, should it become: private IJob job; // where IJob is an interface to Job class. So, if i understand correctly: The interface must have ALL prottypes in it. So to answer my last email, IJob should ext

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello Daniel, > -Original Message- > A quick question regarding inherritance (assuming I[beanname] > are interfaces > to bean properties): > Job extends BaseBO. > BaseBO implements IBaseBO. > IJob only interfaces the extra methods in Job over BaseBO. > > OJB doesnt know about the inherr

Re: dynamic proxies (simple question)

2003-11-10 Thread Daniel Perry
Thanks for the reply. While waiting for someone to respond, i thought i'd give the "one simple interface" a quick go Sadly it doesnt work :) Oh well, eclipses refactoring tools will come in handy! A quick question regarding inherritance (assuming I[beanname] are interfaces to bean properties)

RE: dynamic proxies (simple question)

2003-11-10 Thread oliver . matz
Hello Daniel, > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > So my solution would seem to be proxies. The tutorial on > dynamic proxies isn't too clear. It says: > > "To use dynamic proxies the persistent class in question (in > our case the Article class) must

dynamic proxies (simple question)

2003-11-10 Thread Daniel Perry
I've been using OJB for a month or so and am pretty impressed with it! However, with the application getting complicated, updating a bunch of objects is taking a long time - i'm assuming this is because each time it is loading the whole tree of interconnected objects! So my solution would seem t

Re: Question about getIteratorByQuery

2003-11-10 Thread Antonio Gallardo
A Leg dijo: > You mean that the ojb iterator work exactly in the same the database > iterator works, taking in count the caching issues ? yep. Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Question about getIteratorByQuery

2003-11-10 Thread A Leg
Thomas You mean that the ojb iterator work exactly in the same the database iterator works, taking in count the caching issues ? Excuse me to ask for details, but for my use it is important. Andre Mahler Thomas wrote: Hi again, -Original Message- From: A Leg [mailto:[EMAIL PROTECT

Split table into many classes ???

2003-11-10 Thread Thierry Hanot
Hello I 'm trying to split a table into many classes which are containing only a part of the datas . TABLE TT: NUMBER ID VARCHAR NAME VARCHAR DESCR BLOBDATA I want to have 2 classes one containing a small description ( ID , NAME and DESCR) and the other one Containing the data ( ID and BLOB

RE: Use stored procedure for insert questions

2003-11-10 Thread Thierry Hanot
Hi again Thanks a lot for your answer but it's still not working The broker refuse to insert the instance because there is no sequence manager. Here is the stored procedure : PROCEDURE ADDINSTANCE ( IID OUT twtinstance.id%NUMBER , ITAG IN twtinstance.tag%CHAR

RE: Question about getIteratorByQuery

2003-11-10 Thread Mahler Thomas
Hi again, > -Original Message- > From: A Leg [mailto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2003 9:17 AM > To: OJB Users List > Subject: Re: Question about getIteratorByQuery > > > Thomas > > Thanks for you answer. > Ok for a simple database call, but when we make this call to

Re: problem with tutorial part 4 example

2003-11-10 Thread A Leg
Thomas Thank's again Thomas I got it yesterday on the Sun web site. The Antonio link is the good one. To keep going I will download the 1.0. Cheers Andre Thomas Mahler wrote: Hi again Andre, Where exactly di you get this 1.0.1 version? Our stuff was build against the 1.0 version (jdori-1_0-

Re: Question about getIteratorByQuery

2003-11-10 Thread A Leg
Thomas Thanks for you answer. Ok for a simple database call, but when we make this call to the persistence layer, which bring data step by step does it works ? I make a request on some table with 3 enreg numbers 1, 2 and 5 I ask some iterator at the prsistence layer. And make next. Somebody cre

Re: problem with tutorial part 4 example

2003-11-10 Thread Antonio Gallardo
Thomas Mahler dijo: > Please point me to the 1.0.1 release and I'll check if there are any > compilation problems. Yep Thomas there is a problem with the 1.01 release. It does not work with OJB. Would be fine if you check this closer. 1.01 fix many bugs from 1.0 And I am sure many people will welc

Re: problem with tutorial part 4 example

2003-11-10 Thread Thomas Mahler
Hi again Andre, Where exactly di you get this 1.0.1 version? Our stuff was build against the 1.0 version (jdori-1_0-fcs-src-04_Mar_2002.zip): http://jcp.org/aboutJava/communityprocess/final/jsr012/index.html Please point me to the 1.0.1 release and I'll check if there are any compilation probl

Re: Question about getIteratorByQuery

2003-11-10 Thread Thomas Mahler
Hi Andre, To follow an index you'll need an order by clause for the indexed column. (http://db.apache.org/ojb/api/org/apache/ojb/broker/query/Criteria.html#addOrderBy(java.lang.String,%20boolean)) If you do not use an order by clause the RDBMS is not forced to serve rows in a certain sequence.

Re: o.a.ojb.broker.PersistenceBrokerSQLException: Unknown Types value

2003-11-10 Thread Antonio Gallardo
Hi Thomas: Thomas Mahler dijo: > Antonio Gallardo wrote: >> I wondering why OJB does not support BOOLEAN, since it is a valid type >> for JDBC 3.0. > > No special reason. Only laziness ;-) It is an enough and good supported reason! :- Anyway, BIT works fine. I updated druid too. Best Regar