on delete cascade

2005-09-15 Thread Maksimenko Alexander
Hi All! I specify auto-delete=true in my collection descriptor /** * @ojb.collection element-class-ref=com.esaya.webmail.datamodel.folder.mail.EmailMessage foreignkey=mailFolderId * database-foreignkey=false proxy=true

Re: on delete cascade

2005-09-15 Thread Maksimenko Alexander
Thank for answer Yes I know - but in some cases this processing is skipping for example while deleting objects by query - in such case I get constraint violation error from database Thomas Dudziak wrote: On 9/15/05, Maksimenko Alexander [EMAIL PROTECTED] wrote: Hi All! I specify auto

Re: on delete cascade

2005-09-15 Thread Maksimenko Alexander
Yes javadoc says that I (or database) should take care about deleting references so I think marking foreighn key as onDelete=cascade will be good choice to assure that rows will be deleted even if ojb will forget about them. What do you think? Armin Waibel wrote: Maksimenko Alexander wrote

Re: on delete cascade

2005-09-15 Thread Maksimenko Alexander
as I can understand torque generator support ondelte attribute in constraint so you need only add this attribute in generated by OJB-Doclet torque-schema.xml or am I miss something ? Armin Waibel wrote: Maksimenko Alexander wrote: Yes javadoc says that I (or database) should take care

Re: on delete cascade

2005-09-15 Thread Maksimenko Alexander
submitted it as feature request btw jjira is very convinient tool ;) thanks ;) Thomas Dudziak wrote: On 9/15/05, Maksimenko Alexander [EMAIL PROTECTED] wrote: as I can understand torque generator support ondelte attribute in constraint so you need only add this attribute in generated

Re: lazy materialization problem

2005-04-29 Thread Maksimenko Alexander
I'm using 1.0.3 version and default (per broker) cache yes persistence broker wich fetch folder is different from that one wich materialize children. So to prevent this I need touch all objects in single persistence broker (long-lived caches dont feet me because I'm using web application with

Re: lazy materialization problem

2005-04-29 Thread Maksimenko Alexander
Clute, Andrew wrote: If I cauld say OJB prefetch parent and children reference in all folders wich I materizalize by this call it would be more productive I am slightly confused by this statement. Are you saying you want all the children to be materialized when the parent is created, thus

Re: lazy materialization problem

2005-04-29 Thread Maksimenko Alexander
Thanks Andrew! That's what I need ;) If I cauld say OJB prefetch parent and children reference in all folders wich I materizalize by this call it would be more productive I am slightly confused by this statement. Are you saying you want all the children to

Re: lazy materialization problem

2005-04-28 Thread Maksimenko Alexander
Martin Kalén wrote: Maksimenko Alexander wrote: I have tree like structure (with parent,children relationships). I'm using proxies to lazy materialize them. Everything works well but in particular cases I have to materialize the whole tree because folder.getChildren().get(0).getParent

lazy materialization problem

2005-04-27 Thread Maksimenko Alexander
Hi! I have tree like structure (with parent,children relationships). I'm using proxies to lazy materialize them. Everything works well but in particular cases I have to materialize the whole tree because folder.getChildren().get(0).getParent() is not the same as folder and sometimes it makes

Re: xdoclet: generate interface descriptor

2005-03-15 Thread Maksimenko Alexander
Thomas Dudziak wrote: I'm not sure I understand what you saying here, but FYI, I'm currently changing the XDoclet module to * allow the generation of complete class-descriptors (in the sense that they have field/resource/collection descriptors) without a table * automatic include primary/foreign

Re: xdoclet: generate interface descriptor

2005-03-14 Thread Maksimenko Alexander
Maksimenko Alexander wrote: Sory for delay in answeing No my problem is that only class mapping wich has been proposed by Armin can solve my problem perfectly. But I cannt generate this class descriptor by xdoclet though its completely valid. Hi Thomas! would it be possible to change xdoclet

Re: xdoclet: generate interface descriptor

2005-03-11 Thread Maksimenko Alexander
Sory for delay in answeing No my problem is that only class mapping wich has been proposed by Armin can solve my problem perfectly. But I cannt generate this class descriptor by xdoclet though its completely valid. Thomas Dudziak wrote: The problem is that you need a table in order to map

xdoclet: generate interface descriptor

2005-03-09 Thread Maksimenko Alexander
Hi all! I bumped into some strange thing in ojb xdoclet: I need mapping wich gave me Armin: interface descriptor has field descriptors but doesn't have table attribute class descriptor has both the same field descriptors and table attribute but if I specify *generate-table-info=true in

Re: xdoclet: generate interface descriptor

2005-03-09 Thread Maksimenko Alexander
Thomas Dudziak wrote: I bumped into some strange thing in ojb xdoclet: I need mapping wich gave me Armin: interface descriptor has field descriptors but doesn't have table attribute class descriptor has both the same field descriptors and table attribute but if I specify *generate-table-info=true

Re: ojb and interface driven design

2005-03-04 Thread Maksimenko Alexander
Thomas Dudziak wrote: Yes, you need to declare getters and setters, at least for the fields that are used for primarykeys and foreignkeys. but to my mind it breaks POJO conception - I try declare in interface only that methods wich are needed by controllers - so I think setGroupId() method in

Re: ojb and interface driven design

2005-03-04 Thread Maksimenko Alexander
Yes ! I've tried and its working :) Its strange but some month ago I did the same thing but its wasn't working I need time to play with this aproach Thanks Armin and all who tried to solve my problem - I have not found more responsive forum than this ;) Armin Waibel wrote: I saw ReferenceTest

ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
hi! it's wondering but I found out that its difficult to use interface driven design with ojb ;( lets consider a simple 2-table example: interface User{Integer getId(),Group getGroup()}, class UserImpl implements User{private Integer id; private Group group; access methods} interface

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
Message- From: Maksimenko Alexander [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 5:25 PM To: OJB Users List Subject: ojb and interface driven design hi! it's wondering but I found out that its difficult to use interface driven design with ojb ;( lets consider a simple 2-table

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
. Could you post the stack trace? Did you try latest from CVS OJB 1.0.x branch (branch OJB_1_0_RELEASE)? In OJB test-suite we have a similar test ReferenceTest#testDeepPathQuery(), this test pass. regards, Armin Maksimenko Alexander wrote: hi! it's wondering but I found out that its difficult to use

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
Armin Waibel wrote: Maksimenko Alexander wrote: I'm using 1.0.1 version ojb doesnt produce exception but it generates SELECT A0.GROUP_ID,A0.ID FROM USER A0 WHERE A0.GROUP_ID = ? instead of: SELECT A0.GROUP_ID,A0.ID FROM USER A0, group1 a1 WHERE A0.GROUP_ID = a1.id and a1.manager_id=? AFAIK Jakob

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
would normally make this a 1-m relation. Hope this helps. Wally -Original Message- From: Maksimenko Alexander [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 10:25 AM To: OJB Users List Subject: ojb and interface driven design hi! it's wondering but I found out that its difficult

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
but in this case i need create setters in interface, isn't it ? Thomas Dudziak wrote: I was wondering why you map the Impl classes at all ? You can declare the fields for the interface, you only need to change the PersistentFieldClass in OJB.properties to PersistentFieldIntrospectorImpl or

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
by Tom. regards, Armin Maksimenko Alexander wrote: Armin Waibel wrote: Maksimenko Alexander wrote: I'm using 1.0.1 version ojb doesnt produce exception but it generates SELECT A0.GROUP_ID,A0.ID FROM USER A0 WHERE A0.GROUP_ID = ? instead of: SELECT A0.GROUP_ID,A0.ID FROM USER A0, group1 a1 WHERE A0

Re: ojb and interface driven design

2005-03-03 Thread Maksimenko Alexander
by proxying collection descriptors. I would suggest running tests both ways in your environment. Wally -Original Message- From: Maksimenko Alexander [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 11:19 AM To: OJB Users List Subject: Re: ojb and interface driven design thanks for idea

object hierachy with 2 interfaces

2004-12-21 Thread Maksimenko Alexander
Hi! I have some issues with inheritance I have the following object hierachy: interface ABC interface AB extends ABC class A extends AB so the only concrete class is A However in class org.apache.ojb.broker.metadata.ObjectReferenceDescriptor in method

Re: collection loading and filtering

2004-10-27 Thread Maksimenko Alexander
the transparency of the persistence. Thanks Gildas - Original Message - From: Maksimenko Alexander [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:25 PM Subject: Re: collection loading and filtering did you try query.addPrefetchedRelationship

nested prefetched relationships

2004-08-12 Thread Maksimenko Alexander
Hi! I use 1.0rc6 I find out that prefetched relationships don't work with nested properties property1.property2. Is this feature realized in 1.0 or are you planning to do this in 1.1 ? -- Maksimenko Alexander Softwarium, www.softwarium.net

Re: how to change auto-retrieve for a query?

2004-07-29 Thread Maksimenko Alexander
Armin Waibel wrote: Use collection proxy for child objects http://db.apache.org/ojb/docu/guides/basic-technique.html#Using+a+Single+Proxy+for+a+Whole+Collection or set auto-retrieve of your collection-descriptor to none/false. But be careful when using this setting in combination with

factory-method returns sublass

2004-07-08 Thread Maksimenko Alexander
can I handle this? -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

1:1 with indirection table

2004-06-11 Thread Maksimenko Alexander
Hi! I use 1:1 relationship with indirection table (I need to reduce amount of field in table). Is there any possibility to map it in OJB (for example I need populate this relationship when object is materialized) -- Maksimenko Alexander Softwarium, www.softwarium.net

Re: Ojb Xdoclet: nested fields

2004-06-02 Thread Maksimenko Alexander
Thomas Dudziak wrote: Is fixed in CVS. Apparently the module did only process one ojb.modify-inherited tag per field. Tom Thanks! I've tried it. All works well :) -- Maksimenko Alexander Softwarium, www.softwarium.net

OTM documentation

2004-06-02 Thread Maksimenko Alexander
Hi! I want use OTM to isolate transactions (hsqldb can't do this) Is there any documentation (except tutorial) to understand the principles of its wor? -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e

Re: OTM documentation

2004-06-02 Thread Maksimenko Alexander
continue. So, does it mean OTM not redy for production environment? Can I use Lock Manager without OTM ? -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: OTM documentation

2004-06-02 Thread Maksimenko Alexander
and can work in the same jdk, but it didn't have transaction isolation). Does anybody try to use LockManager without OTM ? -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: OTM documentation

2004-06-02 Thread Maksimenko Alexander
Brian McCallister wrote: The ODMG api works fine in one JVM. It also works fine on really distributed ones =) But it's overhead is more than if I use PersistenceBroker only (I guess) -- Maksimenko Alexander Softwarium, www.softwarium.net

Re: OTM documentation

2004-06-02 Thread Maksimenko Alexander
Thomas Dudziak wrote: I've heard that McKoi (http://mckoi.com/database/) is a good in-jvm database Yes, but it's GPL :( -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: OTM documentation

2004-06-02 Thread Maksimenko Alexander
the McKoi mailing list to see whether this question was posted, and here it is: http://mckoi.com/database/mail/subject.jsp?id=893highlight=license+#MSG_893 (scroll down to the end, last mail from Tobias Downer). Thank you! You have saved me :) -- Maksimenko Alexander Softwarium, www.softwarium.net

OjbXDoclet and final variables

2004-05-29 Thread Maksimenko Alexander
I've noticed that if variable is final doclet want generate it's field descripritor. For example I want specify ojbConcreteClass variable as final (it initialized in constructor and want be changed). -- Maksimenko Alexander Softwarium, www.softwarium.net

Re: Inheritance and Customization

2004-05-28 Thread Maksimenko Alexander
Maksimenko Alexander wrote: Hi! In the article Advanced Object Relational Mapping techniques in the section Mapping All Classes on the Same Table is written that it's possible to customize field which determines concrete type of extent (ojbConcreteClass by default). I want to customize

Re: Polymorphism in collections

2004-05-27 Thread Maksimenko Alexander
it into the rc6. In CVS this is working (I use it myself: abstract baseclass with class descriptor, extents and ojbConcreteClass). I use rc6 and it works. -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail

Polymorphism in collections

2004-05-26 Thread Maksimenko Alexander
Hi! Is it possible to specify in element attribute in the collection descriptor an abstract class? I tried to do this but unsuccessfully :( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: OJB-XDoclet repeat 2 tags bug

2004-05-25 Thread Maksimenko Alexander
Thomas Dudziak wrote: On Mon, 24 May 2004, Maksimenko Alexander wrote: When I use two ojb tags consecutivly ojbdoclet destdir=${dir.javalike} checks=basic fileset dir=../shared/src/java/ ojbrepository destinationFile=file1.xml/ /ojbdoclet ojbdoclet destdir=${dir.javalike

Re: OJB-XDoclet repeat 2 tags bug

2004-05-25 Thread Maksimenko Alexander
Thomas Dudziak wrote: On Tue, 25 May 2004, Maksimenko Alexander wrote: Yes it works well! Thank you for advise! But you'll get a problem in this approach if the classes from src/java reference the classes from ../shared/src/java. Well, not exactly. Since XDoclet behaves like javac

Re: OJB-XDoclet repeat 2 tags bug

2004-05-25 Thread Maksimenko Alexander
they should end (e.g. lib folder etc.) This strategy is applied by OJB, as well, because it makes it easy to accomodate multiple sources of source files and other build information. Thank you for idea! Tom -- Maksimenko Alexander Softwarium, www.softwarium.net

OJB-XDoclet repeat 2 tags bug

2004-05-24 Thread Maksimenko Alexander
destinationFile=file2.xml/ /ojbdoclet I get two files file1.xml and file2.xml file1 is OK but file2 contains all descriptors from file1 and the :table attribute of each class descriptor from file1 equals class name (without package) wich specified in class attribute. -- Maksimenko Alexander Softwarium

XDoclet many source directories

2004-05-21 Thread Maksimenko Alexander
}/${project1}/src/java/**/*.java/ include name=${root.directory}/${project2}/src/java/**/*.java/ /fileset ojbrepository destinationFile=repository_types.xml/ /ojbdoclet xdoclet can't find any processing files -- Maksimenko Alexander Softwarium, www.softwarium.net

XDoclet: conversion attribute

2004-05-21 Thread Maksimenko Alexander
GroupTypeConverter in the classpath wich is specified in testdef tag. -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XDoclet: conversion attribute

2004-05-21 Thread Maksimenko Alexander
. Tom Thanks a lot! It's works :) -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

nested relationships prefetching

2004-05-21 Thread Maksimenko Alexander
Hi! Do you plan to implement prefetching of the nested relationships? E.g.: Application - Environment (1-n) - Group (1-n) and the search class is Application Or if no, what I should do to minimize the number of queries for Group objects? -- Maksimenko Alexander Softwarium, www.softwarium.net

OTM transaction isolation

2004-05-13 Thread Maksimenko Alexander
Hi ! I have to use hsqldb as my database. But it doesn't support transaction isolation So I want to use OTM as transaction management system. Does it use own transaction isolation mechanizm (not database specific)? -- Maksimenko Alexander Softwarium, www.softwarium.net