Re: Design question with Struts

2003-10-23 Thread Gerhard Grosse
Hi Brian, On Thu, 23 Oct 2003 20:51:21 -0400, [EMAIL PROTECTED] wrote: > (snipped) > >1) A Cache implementation that only provides java object identity ( = ) >within a single transaction boundary. I am not sure how this would work, may >have to hack around some. Cache might clone the object and

[OT]RE: Design question with Struts

2003-10-23 Thread mccallister
Quoting Shane Mingins <[EMAIL PROTECTED]>: > ... have been reading Core J2EE Patterns and Patterns of Enterprise > Application Architecture. > btw - if you find those books useful I must highly reccomend _Domain- Drive_Design_ by Eric Evans. It is another annoying-expensive hardback design books

RE: Design question with Struts

2003-10-23 Thread mccallister
Quoting Shane Mingins <[EMAIL PROTECTED]>: > > Yes it does :-) And answered more. Thanks. I am currently developing a > Struts/OJB app and have not yet nutted out the architectural issues/design > ... have been reading Core J2EE Patterns and Patterns of Enterprise > Application Architecture. >

Re: mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
The mapping needed the obvious primary key On Thu, 2003-10-23 at 17:15, Andy Czerwonka wrote: > In looking at the SQL, and update is done when I do the store.. hey I > think the PK is NOT unique... yup - it's not unique... that's gotta be > the problem... > > On Thu, 2003-10-23 at 16:07, Andy

Re: mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
In looking at the SQL, and update is done when I do the store.. hey I think the PK is NOT unique... yup - it's not unique... that's gotta be the problem... On Thu, 2003-10-23 at 16:07, Andy Czerwonka wrote: > I've got a simple 1..n association and I'm doing something like > this...(pardon the synt

RE: Design question with Struts

2003-10-23 Thread Shane Mingins
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, 24 October 2003 11:45 a.m. > To: [EMAIL PROTECTED] > Subject: Re: Design question with Struts > > Shane, > > In this particular application, yes that is exactly what it does. I don't > need any modi

Re: Design question with Struts

2003-10-23 Thread mccallister
Shane, In this particular application, yes that is exactly what it does. I don't need any modifications that span multiple requests in this particular app. The client application (ie, the web application) isn't allowed to hold onto "live" domain objects. If need be it can hold onto a transactio

Re: Order by across extents and question about materialization

2003-10-23 Thread Brian Chaplin
was this ever implemented? I'm having the same issue with sorting extents in RC3. "Matthew Baird" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] my thoughts are we could generate a comparator on the fly and use it to sort the collection, it would definitely be done in the code, not in

mapping problem or something VERY wierd...

2003-10-23 Thread Andy Czerwonka
I've got a simple 1..n association and I'm doing something like this...(pardon the syntax... just trying to make a point) Parent parent = new Parent() Child c1 = new Child(parent); Child c2 = new Child(parent); parent.getChildren.add(c1); parent.getChildren.add(c2); broker.store(parent); broker.co

RE: Design question with Struts

2003-10-23 Thread Shane Mingins
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, 24 October 2003 10:54 a.m. > To: [EMAIL PROTECTED] > Subject: Re: Design question with Struts > > The Command is designed so that any object in the domain model that it > modifies is populated into t

Re: Design question with Struts

2003-10-23 Thread mccallister
I just did an OJB+Struts app. I have a Command interface (not java interface, layer type interface) top model object which knows about the persistence mechanism. Individual commands are *not* dependent upon struts at all, but happen to have properties populated that match nicely to the FormBea

Access PersistenceBroker from FieldConversion API?

2003-10-23 Thread Andy Malakov
Hello All, I am developing OJB FieldConversion for Oracle SDO data structures. What I need is access to current JDBC Connection from FieldConversion's javaToSql() / sqlToJava() methods. Unfortunately FieldConversion API does not provide any context information (like current PersistenceBroker

Re: does QueryBySQL work?

2003-10-23 Thread Jakob Braeuchi
hi cristopher, yes, this is supported. the result of a this query are business-objects, so all necessary columns must be included in the select. hth jakob Christopher Tava wrote: Dear OJB user group, Is QueryBySQL supported? if so, are there any limitations? thank you, chris

RE: help for init problem

2003-10-23 Thread Lance Eason
Yep. The order of operations is: - call the no-arg constructor - populate the member fields - call the initialization method - populate the references I typically use a lazy intitialization pattern where the first time the reference is requested I do any initialization required. -Ori

RE: Design question with Struts

2003-10-23 Thread Alexander Bibighaus
I would recommend creating a services layer for your business logic. With this pattern, your Actions would simply call your services. Your services will contain your business logic. You could still have factories to create the bean's but rather than keeping that logic in the factory, I would m

Design question with Struts

2003-10-23 Thread Yassine Lajmi
Hi, I am using OJB in a struts Web application. I am trying to separate the business Logic from the controler. My question is : is it a good design to make a Factory for each bean and in the actions call only methods on the factories ? Regards, Yassine --

Re: Inner class as persistent. Is it possible?

2003-10-23 Thread Armin Waibel
Hi, (don't know if I understand your question) no problem. Many junit tests use static inner persistence cabable classes. ... PersistentA is a static inner class of ComplexMultiMapped class. Or don you mean nested objects? http://db.apache.org/ojb/tutorial3.html#nested objects regards, Armin [EM

Inner class as persistent. Is it possible?

2003-10-23 Thread Eremiychuk
Hi all, When i use LiDO CE (JDO implementation), some of my persistent classes was implemented as inner. Can I use this approach with OJB? Thanks.

RE: problems with batch-mode=true

2003-10-23 Thread Andy Czerwonka
Okay, first of all, thanks for the fix Mark. Now that I have it working, can anyone explain why my performance just dropped about 20% after turning on batch mode? I reason I wanted a fix is because i was trying to get some better performance, not worsen then performance! HELP!!! On Thu, 2003-

Re: RE : problems with batch-mode=true

2003-10-23 Thread Andy Czerwonka
See Mark Rowell's posts to see the bug and fix. Thanks to Mark!! Cheers!! On Thu, 2003-10-23 at 06:53, Emmanuel Dupont wrote: > Please to tell you yhat we are three ! > > :) > > -Message d'origine- > De : Bonnie MacKellar [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 23 octobre 2003 14:3

RE: refresh=true OR refresh=false

2003-10-23 Thread Charles Anthony
Yes - if you can guarantee that B.setA(A) can't be invoked without a.getBs().add(B). Our app can't - or rather, it could, but then we couldn't deal with B's without dealing with As... Cheers, Charles. > -Original Message- > From: Andy Czerwonka [mailto:[EMAIL PROTECTED] > Sent: 23 Octob

RE : problems with batch-mode=true

2003-10-23 Thread Emmanuel Dupont
Please to tell you yhat we are three ! :) -Message d'origine- De : Bonnie MacKellar [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 octobre 2003 14:33 À : 'Mark Rowell '; ''OJB Users List' ' Objet : RE: problems with batch-mode=true I have the same problem! I thought I was the only one. B

RE: refresh=true OR refresh=false

2003-10-23 Thread Andy Czerwonka
Thank you. I supposed, from a performance perspective, if the relationship is ternary, I should have a convenience method that does the setA(A) and A.getBs().add(B) and then I can turn it off to stop the SQL from being executed. Correct? On Thu, 2003-10-23 at 00:32, Charles Anthony wrote: > Hi,

RE: problems with batch-mode=true

2003-10-23 Thread Bonnie MacKellar
I have the same problem! I thought I was the only one. Bonnie MacKellar -Original Message- From: Mark Rowell To: 'OJB Users List' Sent: 10/23/03 7:59 AM Subject: RE: problems with batch-mode=true Armin No because I am not allowed to use CVS where I work..hence... Oh well! Thanks Mar

RE: problems with batch-mode=true

2003-10-23 Thread Mark Rowell
Armin No because I am not allowed to use CVS where I work..hence... Oh well! Thanks Mark -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: 23 October 2003 11:37 To: OJB Users List Subject: Re: problems with batch-mode=true Hi Mark, did you tried latest version f

Re: problems with batch-mode=true

2003-10-23 Thread Armin Waibel
Hi Mark, did you tried latest version from CVS? I think your mentioned bug was fixed in CVS. See http://cvs.apache.org/viewcvs.cgi/db-ojb/src/java/org/apache/ojb/broker/util/batch/PreparedStatementInvocationHandler.java regards, Armin Mark Rowell wrote: Hi As a follow on I checked the source for

RE: problems with batch-mode=true

2003-10-23 Thread Bonnie MacKellar
Hi, Yes, I had tracked it down to this code segment yesterday, but wasn't sure how to proceed. thanks, Bonnie MacKellar -Original Message- From: Mark Rowell To: 'OJB Users List' Sent: 10/23/03 5:23 AM Subject: RE: problems with batch-mode=true Hi Regarding this issue it looks like (at

RE: problems with batch-mode=true

2003-10-23 Thread Mark Rowell
Hi Sorry for the flurry of emails but changing == to .equals in the doExecute method of PreparedStatementInvocationHandler fixes this problem. Change line 214 in RC4 from if ( ((Method)_methods.get(i)) == ADD_BATCH )

RE: problems with batch-mode=true

2003-10-23 Thread Mark Rowell
Hi As a follow on I checked the source for java.lang.reflect.Method and it has an implementation Of equals which could possibly indicate tat the equality operator (==) does not hold for methods. Mark -Original Message- From: Mark Rowell [mailto:[EMAIL PROTECTED] Sent: 23 October 2003 10

RE: problems with batch-mode=true

2003-10-23 Thread Mark Rowell
Hi Regarding this issue it looks like (at least as far as RC4 is concerned) that in the doExecute method of PreparedStatementInvocationHandler.java the following line (223) gets invoked ((Method) _methods.get(i)).invoke(stmt, (Object[]) _params.get(i)); In my case when using batched mode, and JS

Rollback with Inheritance mapping...

2003-10-23 Thread Thomas Maby
I'm having some trouble using the PersistenceBroker to perform rollback on an object mapped with a simple inheritance hierarchy. Here's how my classes are configured: public class TNObject { private Integer id; private String comment; // (setters and getters) } public class TNHost

AW: AW: Character set mismatch error in Oracle

2003-10-23 Thread Geigl Maximilian, R235
Hello Patrick, ok, here's my suspicion: The problem is caused by the field CONTENT NVARCHAR2(1). You declared it as a unicode field in the database. I think if you used VARCHAR2(1), it would work (but you propably had a good reason for chosing NCHAR). Well, i have no experience with NCHAR and JDB

Inheritance & delete

2003-10-23 Thread b
Hello, I still have some problems deleting record of inherited tables/classes. I've - class A extending B like those in "mapping inheritance hierarchies" tutorial - table A and B like those in "mapping classes on multiple joined tables" docs. When I store a record in table B, is also stored a recor

RE: mapping

2003-10-23 Thread Charles Anthony
Hi, Problem is that an class name attribute is empty. It seems that your first extent-class has an incorrectly spelled class-ref attribute (you have calls-ref). Cheers, Charles. > -Original Message- > From: Reitsam Andreas [mailto:[EMAIL PROTECTED] > Sent: 23 October 2003 08:18 > To: Ojb

RE: check Batchmode problem with DB2 on z/OS with ojb 1.0.rc4

2003-10-23 Thread Matthias . Roth
Hi Gerhard yes I saw it also the error is ignored. thanks Matthias -Original Message- From: Gerhard Grosse [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 22. Oktober 2003 09:29 To: [EMAIL PROTECTED] Subject: Re: check Batchmode problem with DB2 on z/OS with ojb 1.0.rc4 Hi Matthias, I am see

mapping

2003-10-23 Thread Reitsam Andreas
Hello. I tried to map multiple inteface inheritance like this: What's wrong with this, because a NullPointerException is thrown. java.lang.NullPointerException at java.lang.Class.forName0(

RE: check Batchmode problem with DB2 on z/OS with ojb 1.0.rc4

2003-10-23 Thread Matthias . Roth
Hi Armin I use ojb 1.0.rc4 (not the newest cvs version) regards Matthias -Original Message- From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Oktober 2003 23:43 To: OJB Users List Subject: Re: check Batchmode problem with DB2 on z/OS with ojb 1.0.rc4 Hi Matthias, On Tue,