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
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
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.
>
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
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
> -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
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
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
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
> -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
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
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
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
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
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
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
--
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
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.
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-
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
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
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
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,
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
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
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
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
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 )
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
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
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
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
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
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
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
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(
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,
37 matches
Mail list logo