RE: Handling dirty objects in a CRUD web MVC app, OJB handles obj ect store.

2004-06-08 Thread gfaerman
Shane and Daniel Thanks for your pointers and ideas. Shane Mingins [EMAIL PROTECTED] wrote on 07/06/2004 05:30:35 p.m.: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, 5 June 2004 12:23 a.m. To: OJB Users List Subject: Handling dirty

Handling dirty objects in a CRUD web MVC app, OJB handles object store.

2004-06-04 Thread gfaerman
Hi folks, When handling objects in a typical CRUD MVC type web app (lets say Apache Struts based app), most of us have went through the update problem. The fact that web apps are disconnected and following the MVC paradigm ,means the data, while in the browser is just that presentation data,

Re: OJB, MySql.... how do I create the data structures?

2004-06-03 Thread gfaerman
Give Axgen (http://axgen.sourceforge.net/) a chance. From XMI (UML) to java, xml and ddl. Regards, Gustavo. news [EMAIL PROTECTED] wrote on 03/06/2004 11:45:30 a.m.: Hi! Ok, third mail... I've heard that reverse-db can be the wroing road What do you suggest to create the various

Re: client/server Object Caching [Very Urgent]

2004-04-29 Thread gfaerman
Amol, I think you face and underlying problem related to the architecture of your application. I do not know if you are familiar with the MVC pattern, but it seems considering applying it to your project might be of help. The basic idea is to let the Controller in the server talk to the Model

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

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

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

2004-04-28 Thread gfaerman
Dumb problem, but weve get some confusion here. Lets 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

Need help to auto-retrieve some individuals

2004-04-27 Thread gfaerman
Hi all, Lets say we have an object name Father, who has a Child class collection (aggregate association). With the right repository settings (autoretrieve= true etc.) every time we load a father from the database, the children will be instantiated (they may be proxies or materialized). Heres

Re: Need help to auto-retrieve some individuals

2004-04-27 Thread gfaerman
Thanks Edson for your quick answer. We ve already seen your approach. The problem we see with it,is in our real world, the fact that attributes values are more than two in some cases (male and female is just a set of two for this example), and as you say, in some cases there is a large numbre

Re: String Array storing problem in HSQL (FIXED)

2004-03-08 Thread gfaerman
Just fixed it. Wrong data type It work this way: field-descriptor column=rubCamposModif jdbc-type=VARBINARY name=camposModif conversion=org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion/ Database data type is BINARY. Thanks. Gustavo. [EMAIL PROTECTED]

Re: [ann] new release 1.0 RC5

2003-12-15 Thread gfaerman
Dear OJB team, Congratulations and thanks again for your contribution to the opensource community! Cheers, Gustavo Faerman

Re: Object replication vs RDBMS replication (little off topic)

2003-12-01 Thread gfaerman
Robert, Your are right. Unique key generation (or I might say object's unique id generation) is a crtical issue here. We are looking into a couple of algorithms here to address this. It means we would need to delegate OJB?s sequencer a key function. This unique object id might work across

Re: Object replication vs RDBMS replication (little off topic)

2003-12-01 Thread gfaerman
Hi Mircea, when you design a system for backup/recovery you want to be sure that if the testing is ok for 2 or 3 systems then everything will work fine with all of them. Good point. It´s add another perspective. In a server -- server replication (hub to hub), at this point I would even think

Object replication vs RDBMS replication (little off topic)

2003-11-28 Thread gfaerman
Hi all, Weve being using OJB for a while and we do like it. While we depart from the old paradigm (delegating the important stuff to the RDBMS) and we delegate OJB the real work, some opportunities/challenges come to our mind. And since data/object replication is one of those opportunities, we

problem building from CVS

2003-10-07 Thread gfaerman
Hi all, We are trying to build lastest CVS code. We are seeing this error. Any ideas, what are we doing wrong here? Regards, Gustavo. main: [javac] Compiling 571 source files to E:\jakarta\db-ojb\target\classes [javac]

Odd behaviour when updating properties from superclass only with odmg.

2003-09-19 Thread gfaerman
Hi all, Let´s say we have a class Persona, -spanish property names between brackets-. Then we extend Person in a class Tecnico (coach) and class Jugador (Player). Just to make it simple we will focus in Tecnico class. Superclass Persona has properties name (nombre), lastname (apellido),

Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API

2003-09-17 Thread gfaerman
Hi all, We are using ODMG Api. When trying to retrieve a person, who has documents collection (Documents as an ArrayList), OJB fails saying it needs a org.apache.ojb.broker.util.collections.RemovalAwareCollection (pls see error below) It seems we should use a RemovalAwareCollection, or a

Re: R: Problem with repository.xml when upgrading from RC2 to RC3

2003-06-17 Thread gfaerman
Thanks for your answer. Sorry our ignorance. We did not find any differences we should take care off. Could you point us any key attributes in those configuration files we should take care off? By the way, if we go back to RC2 everything is fine. Thanks, Gustavo. Farnea Massimiliano

Re: R: Problem with repository.xml when upgrading from RC2 to RC3. FIXED!!!

2003-06-17 Thread gfaerman
We had not replaced the repository.dtd with the new one. Having it replaced, now it works! Thank you very much Gustavo. -- Thanks for your answer. Sorry our ignorance. We did not find any differences we should take care off. Could you point us

OJB date = jdbc date is not saving time part

2003-04-03 Thread gfaerman
Hi all, I´m saving a java.sql.date to an Oracle field using OJB DATE mapping. The java.sql.date ojbect is being set with system date time. obj.lastModifDate(new java.sql.Date(System.currentTimeMillis())); // Lets say ,with the right mask it would be 03/04/2003 15:40:17. When we retrieve the

Re: OJB criteria fails with Oracle char field right filled with spaces

2003-03-19 Thread gfaerman
Hi Jakob, Thank you very much for your help. It worked. I did not know I could use trim right there. Any pointer to the OBJ documentation where I can read more about this? Best Regards, Gustavo.