It is an issue with the xjavadoc module. You need to update that library
to one of the snapshots that has the generics parsing support. I can
email the file I am using, if you want.
To answer your second question, ues you can use generics just fine in
OJB (due to erasure). Using it here without
My guess is that you are seeing the Collection Prefetcher in action.
Take a look at:
http://db.apache.org/ojb/docu/guides/repository.html#collection-descript
or-N10611
proxy-prefetch-limit
-Original Message-
From: Bogdan Daniliuc [mailto:[EMAIL PROTECTED]
Sent: Friday, August 19,
Yep,
Take a look at:
query.setStartAtIndex
Query.setEndAtIndex
OJBIterator.fullSize
-Original Message-
From: Laran Evans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 23, 2005 10:42 AM
To: OJB Users List
Subject: paging results
Is there a way to tell OJB to return results
:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 10:49 AM
To: OJB Users List
Subject: RE: OJB question - reference counter field
Andrew,
thanks a lot for the prompt reply.
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, August 08, 2005 9:21 PM
Just to confirm, what you are doing works without issue.
We are currently doing in production exactly what you are asking here. As
Thomas states, due to erasure, the same types are being placed into your
persistent objects.
As for mutating OJB to use generics -- there really isn't much benefit
In a word: no. There is no straight forward way to do what you want to
accomplish.
Obviously you can manage that yourself by setting the value to the size of the
collection before saving, and then having that field in the database.
At first I thought a field conversion might work, but it has
FYI...There is a bug with MtoNCollectionsPrefetcher that caused certain
collections indirect MtoN collections to ignore the order-by clauses.
I committed a patch for that about 2 months ago, you might want to build
the latest of the 1_0 release line and see if that fixes your issue.
-Andrew
Hi,
1) I need to completly clear the cache. How can I clear OJB
cache without restarting Tomcat?
pb.clearCache() (PersistenceBroker)
2) Is there any way to control maximum cache size?
None of the current cache implementation's have any size parameters. However, I
assume you
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
populating all of
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
What version of OJB are you using (1.0, 1.0.2?), and which type of cache are
you using? (ObjectCacheTwoLevel, ObjectCacheDefaultImpl)?
The issue stems from the fact that your proxy collection is being materialized
with 1) a different PersistneceBroker instance then the parent object, and 2)
The simplest way to handle this now in the current OJB framework is to
capture the writeObject() serialization method, and then do your
determination if you want to replace your proxies out for real objects.
For example, we do this as well to serialize out full graphs that are in
HttpSession. Our
Users List
Subject: Re: Will a two-level cache solve this problem?
Clute, Andrew wrote:
Good news, I think.
Just so I can understand, I want to clarify: The global cache will be
the same as the cache today, and will contain full graphs.
The second level cache only contain flat objects
Which API are you using? What does your criteria look like?
Without knowing much about how you are selecting your data, I am going
to guess that you are doing a 'addEqualToColumn' as opposed to
'addEqualTo'. The first one assumes the String you pass in is a column
name (hence the lack of quotes
Hello all!
I have a standard 3-tier webapp back with OJB in my business layer. We
are using the PB API. We have a host of domain objects, that is passed
up to the web tier and used for form manipulation.
The standard pattern for us when editing an object is:
1) Retrieve business object from
to go with an ODMG/OTM locking strategy to
isloate my reads from writes?
You could write an thin layer above the PB-api using the kernel locking
api in org.apache.ojb.broker.locking (OJB_1_0_RELEASE branch).
regards,
Armin
Clute, Andrew wrote:
Hello all!
I have a standard 3-tier webapp
Subject: Re: Will a two-level cache solve this problem?
Clute, Andrew wrote:
Good news, I think.
Just so I can understand, I want to clarify: The global cache will be
the same as the cache today, and will contain full graphs.
The second level cache only contain flat objects, but as second
If I have a collection descriptor that is mapped via a decomposed M:N
relationship, it errors out when I attempt to add an isNull criteria for
the relationship.
For example:
I have an object 'foo'
It has a collection of objects 'bar' that is mapped via an
indirection-table and an M:N
-descriptor:
query-customizer class=myquerycustomizerclass attribute
attribute-name=somthing attribute-value=value/ /query-customizer
Note you can pass attributes to customizers.
Daniel.
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 21:33
To: OJB
For collection descriptors, I thought that if you left the auto-update
field off, it was suppose to default to false -- and thus CASCADE_NONE.
However, I am seeing where that is not the case, but instead the code
inside of ObjectReferenceDescriptor is defaulting 'false' to
CASCADE_LINK, with a
I don't know if this was every acknowledged on the list, my Jboss recognizes that they
do it this way, and it is how they want to do it.
You can turn off the Connection checking.
http://www.jboss.org/wiki/Wiki.jsp?page=WhatDoesTheMessageDoYourOwnHousekeepingMean
See Thread Local Pattern
issues.
Thanks for all the help...and once I have found a working solution, I
will post it for all to see.
-Andrew
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 5:29 PM
To: OJB Users List
Subject: RE: Jboss and ClassCastException
or one of the
jars OJB depends on is not correctly reloaded.
Did you follow the instructions made by Stephen Ting
http://db.apache.org/ojb/docu/guides/deployment.html#Packing+an+.ear+fil
e
regards,
Armin
Clute, Andrew wrote:
I am running OJB 1.0 with JBoss 3.2.5.
On *occasional
: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 2:34 PM
To: OJB Users List
Subject: Re: Jboss and ClassCastException (MetadataManager and
JdbcConnectionDescriptor) -- anyone else have it?
Clute, Andrew wrote:
I am almost certain that is a ClassLoader issue.
Yes, my
it?
Clute, Andrew wrote:
Armin,
Could you clarify for me what you mean by I think that some jar files
changed between rc6 and 1.0.
sorry, my bad English ;-)
I mean the names of some jars are changed, e.g.
commons-collections-2.1.1.jar
instead of commons-collections.jar.
Maybe you have a jar
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 2:48 PM
To: OJB Users List
Subject: Re: Jboss and ClassCastException (MetadataManager and
JdbcConnectionDescriptor) -- anyone else have it?
Clute, Andrew wrote:
Armin,
Could you clarify for me what you mean by I think that some jar files
Subject: Re: Jboss and ClassCastException (MetadataManager and
JdbcConnectionDescriptor) -- anyone else have it?
Clute, Andrew wrote:
Upgrading to the newest versions of the lib files for OJB did not fix
the problem.
I wish there was someway I could figure out what was keeping
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 3:22 PM
To: OJB Users List
Subject: RE: Jboss and ClassCastException (MetadataManager and
JdbcConnectionDescriptor) -- anyone else have it?
I don't fill out the application.xml entries, since I
thing
looks weird for the after-serilization version after redploying, since
the url for that class is null. Not sure where it is loading it from, or
why it has a stored copy of it.
-Andrew
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 3:53 PM
Clute, Andrew wrote:
Well, I have narrowed the issue down further, but still do not have a
solution yet. In ConnectionRepository.getAllDescriptor(), the
JdbcConnectionDescriptor's that are in the current repository are
cloned
(seralized) into another list and returned. I made the guess (and I
:[EMAIL PROTECTED]
Sent: Fri 8/13/2004 6:34 PM
To: OJB Users List
Subject: Re: Jboss and ClassCastException (MetadataManager and
JdbcConnectionDescriptor) -- anyone else have it?
Clute, Andrew wrote:
I am wondering if it has something to do with the fact that
SerilizationUtils uses
That's what I assumed, and was afraid of.
I think I can get around it temporarily by actually creating a composite
field that contains the classname and the PK in the same field (i.e.
foo.bar.CatalogItem:12345), and then creating a custom Conversion that
will take that string and instantiate the
So, let's say that the classes that implement this interface have nothing in common,
than the fact that they implement the same interface (existing classes that are
modified to implement this interface to give some commonality to them), so there are
no common properties between them.
In this
Based on looking in
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement()
-- it looks like if no columns are specified, then it will do the
multimapped object select, which you are seeing.
It is clearer as what to do in the HEAD version, but in RC5, it looks
like if you change
QueryReferenceBroker version 1.15 and pass with latest
version.
Hope this will solve your problem too.
Thank you very much!
regards,
java-dumbhead Armin
Armin Waibel wrote:
Hi Andrew,
seems you patch will do the job.
I will check this ASAP.
Thanks!
regards,
Armin
Clute, Andrew wrote:
I created
Wondering if any work has been done on this. I am now getting the same
error, and wondering if I could test the changes.
-Andrew
-Original Message-
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 12:09 PM
To: OJB Users List
Subject: Re: Trying to return an
Message-
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 10:42 AM
To: OJB Users List
Subject: Re: Trying to return an unknown connection2!
Hi Andrew,
Clute, Andrew wrote:
Wondering if any work has been done on this. I am now getting the same
error, and wondering
I recently updated to HEAD and am finding a weird issue now.
I have an object Session, that has a reference to an Object called
Person. Now Person is a proxy object. I am using an Anonymous FK to
reference Person from Session.
When I try to restore Session when it has no Person hanging on it, it
);
}
+return null;
}
else
{
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 5:37 PM
To: OJB Users List; OJB Developers List
Subject: Bug in QueryReferenceBroker?
I recently updated to HEAD
As a little background, I have created a custom RowReader that allows me
to filter out objects based upon some criteria on that object. More
specifically, if a deleted date exist on the object, I filter it out and
return null.
The idea behind this is that I want to maintain some history in my
I have implemented the very same thing via a custom RowReader. I just extended the
default RowReader, and read in the value from that super. After that, I just my
criteria to see if I should avoid it, and return based on that.
Here is my method that I implemnted that extended
. Sfeir [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 10:10 AM
To: OJB Users List
Subject: Re: OJB + MSSQL sp_executesql problem
Clute, Andrew wrote:
We were using the jTDS driver for awhile to, with decent results --
except that it is not JDBC 2.0 compliant. It states
We were using the jTDS driver for awhile to, with decent results --
except that it is not JDBC 2.0 compliant. It states that it is, but it
is missing quite a few features -- mostly notably scrollable resultsets.
So, if you do any paging work at all, I have found the jTDS driver to be
orders of
There really is no reason to deploy OJB as a SAR (I would love to hear
from anyone else that can tell what a good use case would be deploying
it as a SAR).
Just create a facade EJB that will create your PersistenceBroker and do
your work find/save work there. Your client app's will not access the
I have implemented a custom RowReader that filters out deleted items for
me. I have a deleted_date column on all my tables, and this RowReader
checks to see if this column is not null, and if it is null, returns the
object, otherwise returns null.
Easy and effective way for me to soft delete
I see in the documentation, and the new build of my repository file from
the 1.2 Release of the OJB Xdoclet module, that if you do not specify a
length for your varchar's, it defaults to a value of 24.
Why was this change necessary? I see that it says because of MySQL that
it now defaults to
Clute, Andrew wrote:
I recently updated to HEAD of CVS, and it exposed an issue I have
within the AbstractSequenceManager.
I was the original author of the SequenceManagerMSSQLGuidImpl sequence
manager, with it's goal to be to allow the use of MSSQL's unique
identifier as their primary key
I recently updated to HEAD of CVS, and it exposed an issue I have within
the AbstractSequenceManager.
I was the original author of the SequenceManagerMSSQLGuidImpl sequence
manager, with it's goal to be to allow the use of MSSQL's unique
identifier as their primary key. When the
I haven't seen any talk recently on the list about the progress for when
the 1.0 release will be labeled. Is there a plan now for when that might
happen? Are there certain bugs outstanding that are keeping this from
happening that we can help chip into fix?
I will admit my curiosity is for a
Maybe I am missing somethingbut why not wait until the entire tree
(collections and references) has been materialized before pushing the
object on the cache?
Or, is there a problem with circular references by doing that?
-Andrew
-Original Message-
From: Armin Waibel
, and then hard commit it to the cache -- with only
the methods that are materializing the references and collections having
access to it (or you could put it to some temporary cache that is only
available to that thread for materializing that map).
-Andrew
-Original Message-
From: Clute, Andrew
Sorry if this has been addressed, but has there been any discussion about
steps necessary for transition from RC4 to RC5?
More specifically, have there been any fundamental changes to API calls, or
to the OJB.properties file that precludes someone from just taking the new
RC5 jar file and
Subject: Re: [OFF-TOPIC] JAVA JOB QUESTIONs
Clute, Andrew wrote:
Depends on where in the country you want to live.
In the Midwest, I usually see (and hire) junior level guys in the
40-55k range.
If you can find a job on either of the coasts (NYC,SF,Boston) you are
looking at probably another 15
I currently have our application running using OJB. I am using the PB
interface because it was the easiest to prototype and get up and running.
We have a Struts application that calls a collection of EJB services for
retrieving specific object-trees that the web app needs, along with
).
-Brian
On Friday, October 17, 2003, at 10:07 AM, Clute, Andrew wrote:
Thanks for the response...you added some interesting point.
I knew somewhat that the OJB cache only worked with QueryByIdentity(),
but
the gains are still significant for us. Our object model has some
rather
deep
That is kind of what I assumed. It makes using proxies somewhat worthless in
an EJB environment, at least in my opinion. Proxies to me seemed to be a
great way to do lazy instantiation, and keep the client ignorant of
persistence mechanisms.
So, if you have to materialize the entire graph before
I apologized in advance for the increase in mail traffic today. I have
checked the archives for an answer to this, to no avail.
I am seeing, as expected, if our Database has been restarted that any db
connections in the pool as becoming invalid. I understand how this is
happening -- the
was delivered by the pool.
Any proposals to make this more sophisticated are
welcome.
regards,
Armin
On Fri, 17 Oct 2003 11:20:02 -0400, Clute, Andrew
[EMAIL PROTECTED] wrote:
I apologized in advance for the increase in mail traffic today. I have
checked the archives for an answer to this, to no avail
I have found an issue that I think is a bug, but I want to make sure that is
the case.
Given the following scenario:
Object A has 'refresh=true' on it's descriptor, and has a reference to
Object B, and in the reference descriptor for Object B, 'refresh=true' is
set as well.
However, Object B's
I should also mention this seems to be an issue with Collection as
wellif a collection descriptor declares to refresh the collection
objects, it will not do it of the class descriptor for the member class does
not allow it to be refreshed.
-Original Message-
From: Clute, Andrew
I have a model like this:
BusinessObject -- AuditableBusinessObject -- Dog
Dog extends AuditableBusinessObject -- along with 30 or so other classes,
while 15 or so only extend BusinessObject.
AuditableBusinessObject's all have created/modified/deleted dates, and are
never deleted, but only
Ok, great. That is exactly how I have it. As we discussed before that is not
working, so I will patiently wait for your fix for this.
I really do appreciate your work and effort in this!
Thanks again!
-Andrew
-Original Message-
From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
Sent:
So, let's say I have a base class 'BusinessObject' with a property called
'guid'
So, I have two classes, both extend BusinessObject, named 'dog' and 'cat'.
My database (which already exist), has a field in the tbl_dog table called
dog_guid, and the tbl_cat has cat_guid.
Before using Xdoclet to
it always sets the access=anonymous, even
if I specify an access=readwrite for that field.
Ways around this?
-Original Message-
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 3:45 PM
To: '[EMAIL PROTECTED]'
Subject: Xdoclet: How to use base-class
64 matches
Mail list logo