Re: clear() && collection proxy && RemovalAware

2004-04-28 Thread Armin Waibel
Hi Edson, I'm not familiar with the proxy stuff, so be patience... [EMAIL PROTECTED] wrote: 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(

Re: Second try: (ODMG) Transaction.abort() vs. object rollback

2004-04-28 Thread Armin Waibel
Hi Steve, sorry for ignore your first post. Don't hesitate to post again and again and ... ;-) Steve Clark wrote: The way I read the Javadocs, if I make some changes to persistent objects which are locked to an ODMG Transaction, and then Transaction.commit() fails, e.g. due to a database constr

How-to model a composite design pattern of java in the database (and repository)!

2004-04-28 Thread Georg Klima
Hello! I'm quiet new to ojb and maybe haven't read all possible materials about it. Excuse me if this is real newbie!! Problem: I have a library (university project) which has a COMPOSITE PATTERN (the one from gamma et'al) for implementing the storing of different types of objects (cds, books...

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: ass

Second try: (ODMG) Transaction.abort() vs. object rollback

2004-04-28 Thread Steve Clark
Does anybody have any insight on the post-abort state of persistent objects? I'm in a bit of a bind if my understanding of this is correct. thanks, -steve > From: "Steve Clark" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: (ODMG) Transaction.abort() vs. object rollback > Date: Tue, 27

RE: Need help to auto-retrieve some individuals

2004-04-28 Thread edson . richter
I have some "father" with large number of "childs" in some of our project. The solution I've found is make the getChildren() method execute a PB Query (of course you can use other apis) using ... Criteria c = new Criteria(); c.addEqualTo("fahter.id", fatherId); //this tells to what father we are

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Jason McKerr
Actually, since I work at the Open Source Lab, I am getting paid to do open source. Just not by you guys. :) Jason On Wed, 2004-04-28 at 11:01, Armin Waibel wrote: > Jason McKerr wrote: > > > Hey Armin, > > > > Sorry it took me so long. > > no problem, you don't get money for it ;-) > > >

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Armin Waibel
Jason McKerr wrote: Hey Armin, Sorry it took me so long. no problem, you don't get money for it ;-) I've finally got some nodes up and running and will begin testing the cluster. I'm still a bit confused as to how to integrate Thomas's lock servlet with an existing servlet infrastructure in

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Jason McKerr
Hey Armin, Sorry it took me so long. I've finally got some nodes up and running and will begin testing the cluster. I'm still a bit confused as to how to integrate Thomas's lock servlet with an existing servlet infrastructure in a simple way, but I'll get there. J On Wed, 2004-04-28 at 09:25,

Help to locate and update a collection member (big collection)

2004-04-28 Thread gfaerman
Dumb problem, but weâve get some confusion here. Letâs say we have a Master object that has a Details object collection. Details collection is a 10ths thousand objects set. Repository settings for Master object are autoupdate true, autoretrieve true,autodelete true. API is PB. Our user need to q

Re: Multiple Joins problem.

2004-04-28 Thread Jakob Braeuchi
hi brendan, when ojb builds the joins it checks if there's is already a join for a given path. that's why it produces only one join for multiple criteria. if you want to force it to use multiple joins you'll have to define an alias on each criteria: crit1.setAlias('subscribed'); crit2.setAlia

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Armin Waibel
it's in CVS, we do a migration to Forrest for document generation Armin Jason McKerr wrote: Is that in CVS or in the latest release? JAson On Wed, 2004-04-28 at 09:20, Armin Waibel wrote: Jason McKerr wrote: That's correct. But it apparently isn't clear enough. I will add a short note to

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Jason McKerr
Is that in CVS or in the latest release? JAson On Wed, 2004-04-28 at 09:20, Armin Waibel wrote: > Jason McKerr wrote: > > > That's correct. But it apparently isn't clear enough. I will add a > > short note to the documentation about that. > > > > Jason, please check out the new "howto-work-w

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Armin Waibel
Jason McKerr wrote: That's correct. But it apparently isn't clear enough. I will add a short note to the documentation about that. Jason, please check out the new "howto-work-with-clustering.xml" under [db-ojb]/forrest/src/documentation/content/xdocs/docu Thanks! regards, Armin Jason On Wed,

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Jason McKerr
That's correct. But it apparently isn't clear enough. I will add a short note to the documentation about that. Jason On Wed, 2004-04-28 at 01:42, Enrique Medina wrote: > Solved! > > The problem was, as I commented in my post, a misconception about what a > distributed cache really has to do.

Re: Update problem using PersistenceBroker api

2004-04-28 Thread Armin Waibel
Hi Stijn, do you use OJB default settings (OJB.properties)? Your test seems ok. regards, Armin Stijn de Witt wrote: I have created a test program that attempts to load a Candidate from the database with lastName="Tester". If none is found it creates a new one. It then sets the title field to a ran

Multiple Joins problem.

2004-04-28 Thread Brendan Richards
Hi, I have an issue with making multiple joins between two tables. I have a basic contact table with a 1->many relationship to a simpleProperty table - which consists of name-value pair records to dynamically extend my data set. If I query with just one simple property it works just fine: PB

RE: reverse-Tool with Oracle 8.1.7

2004-04-28 Thread Ribi Roland
I fogot one line: int iDecimalDigits = rs.getInt("DECIMAL_DIGITS"); this comes before my other code: if(iDataType == java.sql.Types.DECIMAL){ if(iDecimalDigits>0) { iDataType = java.sql.Types.DOUBLE; } else { iDataType = java.sql.Types.BIGINT;

RE: reverse-Tool with Oracle 8.1.7

2004-04-28 Thread Ribi Roland
Hi I found the specific class and added the follwing code to the class org.apache.ojb.tools.mapping.reversedb.DBSchema in the read-method before the call of this.addColumn(...): if(iDataType == java.sql.Types.DECIMAL){ if(iDecimalDigits>0) { iDataType = java.sql.Types.DOU

Re: Creating Reports

2004-04-28 Thread gfaerman
It looks like you are facing a sort of pivot table challenge. Even when you expect just one single value for a known row, unknown column cell. In this case, you are in the right track. I I see no other way to pre-prepare the collection programmatically, and once known the number and name of th

RE: Poor man trying to log....

2004-04-28 Thread Guillaume Nodet
Your configuration file references log4j. You must create a log4j.properties file with the following content log4j.rootLogger=DEBUG,console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.ImmediateFlush=true log4j.appender.console.Target=System.out log4j.appender.co

RE: Creating Reports

2004-04-28 Thread Daniel Perry
I looked at jasper reports, but it seemed difficult to do what i needed (normal structured reports, and some very unstructured stuff) Firstly i went down the iText route (java pdf library). Wouldnt do the same again with hindsight - not enough control over positioning/margins especially in tables

Re: How-to model a composite design pattern of java in the database (and repository)!

2004-04-28 Thread gfaerman
Georg, We went through these type of problems several times now. And I would say that using some tools we´ve resolved them "trusting" the tools proposed solutions (we believed those tools bring us others collegues knowledge and experience to our IDEs). This approach let us focus on the business

Re: Creating Reports

2004-04-28 Thread Phil Warrick
Keith, You are not limited to static pre-compiled XML based reports with Jasper. There is also an API to generate reports on the fly. Look at Jasper's NoXmlDesignApp sample. Phil Keith Rogers wrote: It did not look easy to produce the following report, The report details which units in a c

Re: Creating Reports

2004-04-28 Thread Keith Rogers
It did not look easy to produce the following report, The report details which units in a course a student has passed. The rows are students, the columns are units (and one for the student id). The problem here is that the unit columns are retreived from the course, so it will not be known at runt

[JDO] Can I use a proxy with the JDO implementation ?

2004-04-28 Thread Alexandre BOISSEAU
Hi, I would like tu use a proxy to manipulate my objects (wich contains BLOB). Is this use is possible with JDO ? Maybe with the org.apache.ojb.broker.VirtualProxy ? Thanks in advance, Alexandre. Excuse my bad English ;-). -- Alexandre BOISSEAU Université de Rennes1 --

reverse-Tool with Oracle 8.1.7

2004-04-28 Thread Ribi Roland
Hi I would like to use the reverse-tool to genereate the repository.xml and the java code. But the reverse-tool takes always DECIMAL (JDBC-Type) and Long (Java-Type) for any Number column in Oracle. How can I override this so that a NUMBER(4) Column is mapped from BIGINT (JDBC-Type) to Long (Ja

Poor man trying to log....

2004-04-28 Thread Martin I. Levi
Hi, I would like to check OJBs logs but I really dont know how to configure them. I found that in OJB.properties there is a definition which reads: "LoggerConfigFile=log4j.properties" Can any one tell me which is this files format? The only thing Im sure is that I use PoorMansLoggerImpl and that

Re: Creating Reports

2004-04-28 Thread gfaerman
Keith, We´ve been using JasperReports with OJB por a while now. Reading your requirements, it seems JasperReports deservs a deep look. Let me quote you >I'd like to be able to write > a definition of the report in XML Well, this is exactly what you do with JR. Jasper will parser the report de

Re: Creating Reports

2004-04-28 Thread Keith Rogers
Thanks to all who replied to this! All of these seem to be report presentation libraries rather than report generators, so I think I might try to write something more specific to my needs. Keith >>> [EMAIL PROTECTED] 26/04/2004 14:30:28 >>> A quick search of sourceforge finds: OpenReports : ht

How-to model a composite design pattern of java in the database (and repository)!

2004-04-28 Thread Georg Klima
Hello! I'm quiet new to ojb and maybe haven't read all possible materials about it. Excuse me if this is real newbie!! Problem: I have a library (university project) which has a COMPOSITE PATTERN (the one from gamma et'al) for implementing the storing of different types of objects (cds, books...

Re: Clustered cache with OSCache & JavaGroups

2004-04-28 Thread Enrique Medina
Solved! The problem was, as I commented in my post, a misconception about what a distributed cache really has to do. I thought even read changes had to be notified to the rest of the cluster, but after a deep reading and investigation of other managers of distributed cache, I realized that only