Phillippe,
I wanted to and do the same thing, and I now use this trick:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg04141.html
HTH,
Colin
Philippe Boisaubert wrote:
About using/design with ODMG API :
Generally I want to get a domain (business) object from the persistence layer. Then I
us
Hello everybody,
I'm trying to check out the latest CVS HEAD of OJB and I'm having the following problem:
C:\tcollen\dev>cvs checkout db-ojb
cvs server: Updating db-ojb
cvs server: failed to create lock directory for `/home/cvs/db-ojb' (/home/cvs/db-ojb/#cvs.lock):
Permission denied
cvs server:
Hi,
using such "view objects" is a common J2EE pattern (the value object, or
data transfer object). I use it extensively in Struts and OJB
applications. It helps decoupling presentation/business
logic/persistence tiers in your app, and in the case reported by
Philippe, avoid an adherence to th
Does Ojb offer a way to include additional propertiesin a proxy object besides the id?
I have an Image class with lightweight properties (name and description) and
heavyweight properties (various versions of the image data itself). In my webapp, I'd
like to pull down a list of ImageProxy obj
hi john,
have you tried disabling the collection-desriptor tweaking in
RelationshipPrefetcherImpl#prepareRelationshipSettings() ?
public void prepareRelationshipSettings()
{
setCascadeRetrieve(getObjectReferenceDescriptor().getCascadeRetrieve());
getObjectReferenceDescriptor().setCascadeRetrieve
you're correct as far as the duplicate objects goes... if you name your properties the
same in both objects, you can use BeanUtils (part of the commons jar) to save yourself
the tedious work of "a.setXXX(b.getXXX)" when copying properties back and forth.
I'm also using struts so I have to copy th
I seem to have read something that if you want a TIMESTAMP jdbc-type you have to use
one of the conversion classes JavaDate2SqlTimestampFieldConversion in you
repository.xml
Axel guerrero
-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 1
Hi,
I am using MySQL 4.
When a column of type "date" is mapped to JDBC type "TIMESTAMP" in the
repository.xml
ie.
name="dateField"
column="dateField"
jdbc-type="TIMESTAMP"
nullable="false"
primarykey="true"
/>
writing data to the database via OJB will result in
I think about it too. But I must have duplicate object which are the same
(or contains only the updatable properties) than persistent ones.
Another solution will be to use FormBean (I use Struts) but it forces me to
pass a form bean (view data) in my persistent method (persistence layer) as
an argu
doh! Seems I'm tired or dumb ;-)
I mean autoincrement="true"
Or did you implement your owm sequence manager?
abashed,
Armin
Armin Waibel wrote:
Hi,
assume you are using SequenceManagerNativeImpl?
Please set primarykey="true"
Which OJB version?
regards
Armin
Rémi Bars wrote:
Hi all,
i m trying t
I am doing something very similar to what you are trying to do...
Here's how I addressed the problem:
I have a series of Objects that map to the db tables (I call them data objects).
I also have a series of Objects (i call them view objects, almost exact duplicates of
the data Objects) that I use
Hi,
assume you are using SequenceManagerNativeImpl?
Please set primarykey="true"
Which OJB version?
regards
Armin
Rémi Bars wrote:
Hi all,
i m trying to use identity on sybase with the odmg api. I don t understand
why only one object is insert in my table, when i try to add a second object
i get
sorry i mean
access = "readonly"
without dash
Armin
Sergey V. Oudaltsov wrote:
Did you tried to set field as read-only?
access = "read-only"
Not yet. I will though. Right now.
OJB version?
Straight from CVS HEAD (well, yesterday)
Thanks for the idea,
-
About using/design with ODMG API :
Generally I want to get a domain (business) object from the persistence layer. Then I
use it in my app (webapp), modify it and when modification are validated, update it in
the persistent storage.
I use a class for persistence actions (CRUD) like this :
class
Hi all,
i m trying to use identity on sybase with the odmg api. I don t understand
why only one object is insert in my table, when i try to add a second object
i get no error but no record too.
have u an idea?
thanks for ur help!
here is my repository
here is my tabl
> Did you tried to set field as read-only?
> access = "read-only"
Not yet. I will though. Right now.
> OJB version?
Straight from CVS HEAD (well, yesterday)
Thanks for the idea,
--
Sergey
-
To unsubscribe, e-mail: [EMAIL PRO
Did you find this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06219.html in the
archive. It solved all my proxy problems thus far.
-Ken
> -Original Message-
> From: Glauber Andrade [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 26, 2003 10:28 AM
> To: [EMAIL PROTECTED]
You must cast to InterfaceNotaRecibo not NotaRecibo.
> -Original Message-
> From: Glauber Andrade [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2003 15:28
> To: [EMAIL PROTECTED]
> Subject: proxy ClassCastException
> Importance: High
>
>
> I am trying to use proxy (my first time) and I
I am trying to use proxy (my first time) and I am getting a
ClassCastException.
What do I need to do? How do I cast ?
Thanks,
Glauber
Query q = QueryFactory.newQuery(NotaRecibo.class, crit);
Collection c = broker.getCollectionByQuery(q);
Iter
Hello,
> -Original Message-
> this is the exception stack trace :
>
> java.lang.ClassCastException:
> edu.broglie.ws.dto.AppFlulog
> at
> edu.broglie.ws.dto.AppAppcli.equals(AppAppcli.java:65)
your implementation of equals() does not fulfil the
contract specified in the javadoc of
Hello,
I have observed the following:
when I do the following:
broker.beginTransaction();
broker.delete(x);
broker.store(x, ObjectModificationDefaultImpl.UPDATE);
this fails with a
org.apache.ojb.broker.KeyConstraintViolatedException
When I use optimistic locking, this fails with
an
org.a
Hi,
I get sometimes a ClassCastException when I try to get
the children of an object using the lazy-loading mode.
I instist that it is a random error. Most of the
cases, it works very well on exactly the same job.
this is the exception stack trace :
java.lang.ClassCastException:
edu.broglie.ws
Hi Sergey,
Did you tried to set field as read-only?
access = "read-only"
OJB version?
regards,
Armin
Sergey V. Oudaltsov wrote:
Hi all
We are trying to insert objects into the table using OJB through some
stored procedure (MS SQL 2000) _without_ specifying the primary key (so
initially it is null
Hi all
We are trying to insert objects into the table using OJB through some
stored procedure (MS SQL 2000) _without_ specifying the primary key (so
initially it is null). The key is supposed to be calculated inside the
stored procedure. Unfortunately, we get exception assertValidPkFields -
it see
Remarque : message transféré en pièce jointe.
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com--- Begin Message ---
Hi,
I get sometimes a ClassCastException when I try to get
the
Hallo,
I follow the steps descriped on the Quickstart page, but I get the
following error running the command:
"bin\build junit"
ERROR:
C:\db-ojb-1.0.rc4>bin\build junit
Buildfile: build.xml
splash:
set-archive-name:
set-archive-name-date:
detect-jdk:
check-jdk12proxy-classes:
check-jndi-c
Hello,
> -Original Message-
> I've got an object which contains a collection. When I change
> the object collection OJB wants to delete the related object
> in the database.
this is one of the most frequently asked questions.
See any of the threads that contain 'RemovalAwareCollection
I've got an object which contains a collection. When I change the object collection
OJB wants to delete the related object in the database.
For example I've got a Book object with a collection of Author object. I've got an n:m
non decomposed relationship and my descriptor don't allows cascade-de
Hi Michael,
The ODMG exceptions do contain the original SQL exceptions to provide user
with helpful information.
I think you could easily patch the RollbackException to wrap the odm
exception.
cu,
Thomas
> -Original Message-
> From: Michael Becke [mailto:[EMAIL PROTECTED]
> Sent: Tuesday
"Graham Lounder" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hey all,Hi,
as I can see you only have to set the data-type in your repository.xml of
the memo-field to LONGVARCHAR.
I have had the same problem, but now it is running fine.
Tino
>
> I'm trying to save a strin
30 matches
Mail list logo