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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
. 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
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
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
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
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
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
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
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
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
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
can I handle this?
--
Maksimenko Alexander
Softwarium, www.softwarium.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
}/${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
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]
.
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]
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
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
51 matches
Mail list logo