[JDO] Problem with byte-code enhancement

2004-04-26 Thread Alexandre BOISSEAU
Hi, I have a class file with an 'long id' autoincrementally. During byte-code enhancement, I get the following error : [java] Error while enhancing: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): nested exception:

RE: Problem with sequence manager

2004-04-26 Thread Guillaume Nodet
It should be ok. The reset name seems fine to me. Thanks, Guillaume -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 avril 2004 18:08 À : OJB Users List Objet : Re: Problem with sequence manager Guillaume Nodet wrote: I only added the following

RE: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
I already used it, just configure the right class in ojb.properties for the key ObjectCacheClass, then just configure your cache.ccf file for configuring jcs. Guillaume -Message d'origine- De : Dirk Manske (Service Respond) [mailto:[EMAIL PROTECTED] Envoye : dimanche 25 avril 2004 21:25

AW: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Dirk Manske (Service Respond)
thx for your answer Guiiaume. I already did this and use the example (basic) cache.ccf file from the jcs homepage. But I am using JCS the first time and there is no much docu available, so I am wondering how it all works. Is it as easy as broker.beginTransaction(); broker.insert(persistObject);

Re: AW: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Armin Waibel
Hi Dirk, you don't need to cache the objects by yourself it will be done by OJB. If you want to manipulate the cache use the service method provided by PB: PB.serviceObjectCache() or to remove objects from the cache, yu can find methods at PB. broker.beginTransaction();

RE: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
You should not bother accessing direcly jcs. The cache will be created by ojb and you can retrieve objects using ojb with a broker.getObjectByIdentity. For the jcs cache implementation in the ojb distrib, you're right that it should use a string as the key. Personnally, i copied the given class

AW: AW: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Dirk Manske (Service Respond)
Hi Armin, oh I see, great. This simplifies it for me. I have two more questions: If I do not specify an expiration time of the cached object in cache.ccf, is there a default 'remove objects from cache implementation which will be invoked after a certain time? What about the memory shrinker

Re: [JDO] Problem with byte-code enhancement

2004-04-26 Thread Nicolas Arni-Bloch
Hi Alexandre, could you send the java class ? wish version of the jdo enhancer do you use ? Le 26 avr. 04, à 09:00, Alexandre BOISSEAU a écrit : Hi, I have a class file with an 'long id' autoincrementally. During byte-code enhancement, I get the following error : [java] Error while

Re: [JDO] Problem with byte-code enhancement

2004-04-26 Thread Alexandre BOISSEAU
Hi Nicolas, I use the enhancer provided by jdori (com.sun.jdori.enhancer) and db-ojb-1.0.rc6. I don't know, because I have a similar class without problem during enhancement and running. Here my class file : public final class CFile { private long id; // primary-key, autoincrement

collection-descriptor and refresh

2004-04-26 Thread Richarz, Klaus (Computer Service)
Hello, we have a strange siuation where collections are *NOT* updated in the object cache (org.apache.ojb.broker.cache.ObjectCacheDefaultImpl). Situation: Object A has many B (1 to n) Object B has many C ( 1 to n) A.getBs() - auto-delete=true B.getCs() - auto-delete=true We insert an A, many

RE: AW: Object Cache using ObjectCacheJCSImpl

2004-04-26 Thread Guillaume Nodet
You should ask to the mailing list of jcs for such questions. mailto:[EMAIL PROTECTED] Guillaume -Message d'origine- De : Dirk Manske (Service Respond) [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 avril 2004 12:06 À : 'OJB Users List' Objet : AW: AW: Object Cache using

Creating Reports

2004-04-26 Thread Keith Rogers
I've gotten around to the part of my application that needs to produce reports on various things. Rather than hard-code reports, which would, admittedly make my job more secure :-) , I'd like to be able to write a definition of the report in XML, and have some parser take this and produce the

Re: [JDO] Problem with byte-code enhancement

2004-04-26 Thread Nicolas Arni-Bloch
I try your class and it work for me. Just to now. Be careful if you want to use the OJB plugging for JDORI because it doesn't work very well (or I don't now how to use it). The 1..n and n..m relation have problem with the persistence by reachability. When you get object with a query, reachable

Re: [JDO] Problem with byte-code enhancement

2004-04-26 Thread Alexandre BOISSEAU
Ok, I continue to search any solutions. Which tool you use to enhance byte-code ? (other that JDORI). I have a case of update that running good with 1..n relation. But I didn't look further these tests. Thanks, Alexandre Nicolas Arni-Bloch wrote: I try your class and it work for me. Just to

Re: auto increment not working

2004-04-26 Thread Glenn Barnard
Nilesh, if you are still having difficulty, it is time to step through the code with a debugger, like Eclipse. But first, you'll need to get the OJB source code and compile it (at least org/apache/ojb/broker/util/sequence/SequenceManagerNativeImpl) in your IDE. This because rc5 and rc6 are not

Re: Creating Reports

2004-04-26 Thread Robert r. Sanders
A quick search of sourceforge finds: OpenReports : http://sourceforge.net/projects/oreports/ JasperReports : http://sourceforge.net/projects/jasperreports/ JFreeReport : http://sourceforge.net/projects/jfreereport/ I think all 3 of these tools use an xml based syntax. I have played around w/

How to persist a HashMap

2004-04-26 Thread Claude Kasper
How can I persist a HashMap object? Do I have to store it with a JDBC type like BLOB or BINARY since JAVA_OBJECT does not work with MySQL. Cheers Claude - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Creating Reports

2004-04-26 Thread A Leg
Hi I use jasper Reports with OJB and it is easy to interface : You make a customized datasource using collections extracts from Ojb. I have also posted a barcode extension for jasper Reports http://compiere-mfgscm.sourceforge.net/ You can use iReports to design reports for jasper Reports I have

Question with OTM and auto-retrieve=true

2004-04-26 Thread Jean-Francois Beaulac
Hi, I've got a question regarding the attribute auto-retrieve=true with a collection descriptor. I'm using the OTM Api. Here is my situation, i have two class of persistent objects : CustomerGroup and Customer, the CustomerGroup has a collection that contains all the customers in the group. If

Re: Creating Reports

2004-04-26 Thread Rama Mohan Pacific Net
Hi Keith, We use Jasper Reports and iReport extensively. Jasper Reports generates reports based on an XML definition. The data source could be JDBC or a collection of Java Beans. To prepare a report, you can simply query the records using OJB and pass the collection to Jasper Reports for

Update Problem

2004-04-26 Thread Info
Hello, I am using following code to update a record: broker = PersistenceBrokerFactory.defaultPersistenceBroker(); QueryByCriteria query = new QueryByCriteria(department); DepartmentDto result = (DepartmentDto) broker.getObjectByQuery(query); if

hashcode and proxies

2004-04-26 Thread mattias . ekstrand
Hi all, how should I handle cases where my business objects could be either real objects or proxies, and I want to override hashcode (because I've already overridden equals)? Let's say that I'm using a proxy reference for an object A (i.e. not all As are proxies by default), and I put some As

Problem setting up OJB using ojb-blank

2004-04-26 Thread Fiona Magner
Hi there: I'm a newbie trying to get started with OJB. I have created ojb-blank to start a new project. However in this new project I have tried to set up a simple application using the PersistenceBorkerFactory and also using ODMG. With each I am getting an error complaining that the

RE: Creating Reports

2004-04-26 Thread REN,ZHANGLING (HP-Boise,ex1)
JasperReports is an open source Java reporting tool. A report design is represented by an XML file. http://jasperreports.sourceforge.net/ Zhangling -Original Message- From: Keith Rogers [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 4:01 AM To: [EMAIL PROTECTED] Subject:

N:M relations problem/question - unwanted deletions

2004-04-26 Thread Emmanuel Mascarenas
I have a simple n:m relation: user *..* rol I brake this with a middle table user 1..* user_rol *..1 rol Everything is fine, the problem is when a delete a rol from the rol user's collection, the rol it self is deleted and I want to keep it. Here es the code on user: /** @ojb.collection

Polymorphism + Collections + Dynamic Proxies

2004-04-26 Thread Lucas Scharenbroich
Hello, I couldn't find my specific question in the archives, so I am posting it here. Please CC any reply as I am not subscribed. I am using ojb-rc6 with a postgreSQL database. I have an object hierarchy implemented which uses the one-table-per-class approach along with join tables for

Problem setting up OJB using ojb-blank

2004-04-26 Thread Fiona Magner
Hi there: I'm a newbie trying to get started with OJB. I have created ojb-blank to start a new project. However in this new project I have tried to set up a simple application using the PersistenceBorkerFactory and also using ODMG. With each I am getting an error complaining that the