RE: xdoclet module with Java 1.5

2005-09-01 Thread Clute, Andrew
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

RE: Dynamic Proxy Question

2005-08-23 Thread Clute, Andrew
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,

RE: paging results

2005-08-23 Thread Clute, Andrew
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

RE: OJB question - reference counter field

2005-08-09 Thread Clute, Andrew
:[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

RE: OJB 1.0.x and Java5.0

2005-08-08 Thread Clute, Andrew
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

RE: OJB question - reference counter field

2005-08-08 Thread Clute, Andrew
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

RE: orderby column in indirection-table

2005-07-28 Thread Clute, Andrew
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

RE: OJB cache

2005-05-09 Thread Clute, 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

RE: lazy materialization problem

2005-04-29 Thread Clute, Andrew
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

RE: lazy materialization problem

2005-04-29 Thread Clute, Andrew
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-28 Thread Clute, Andrew
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)

RE: partial materialization?..

2005-04-12 Thread Clute, Andrew
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

RE: Will a two-level cache solve this problem?

2005-03-20 Thread Clute, Andrew
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

RE: VARCHAR columns?

2005-03-14 Thread Clute, Andrew
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

Will a two-level cache solve this problem?

2005-03-09 Thread Clute, Andrew
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

RE: Will a two-level cache solve this problem?

2005-03-09 Thread Clute, Andrew
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

RE: Will a two-level cache solve this problem?

2005-03-09 Thread Clute, Andrew
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

Decomposed Collection and isNull() -- How to make it work?

2005-01-11 Thread Clute, Andrew
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

RE: Way to do Outer Joins for orderby's in Collection descriptor?

2004-12-14 Thread Clute, Andrew
-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

BUG: I thought auto-update was suppose to default to NONE?

2004-10-18 Thread Clute, Andrew
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

RE: JBoss have to close connection in managed environment and nes ted EJB calls

2004-09-09 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-16 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
: 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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
[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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
-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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
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

RE: Jboss and ClassCastException (MetadataManager and JdbcConnectionDescriptor) -- anyone else have it?

2004-08-13 Thread Clute, Andrew
:[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

RE: How do you map a reference to an interface-backed class? (non-trivial)

2004-06-21 Thread Clute, Andrew
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

RE: How do you map a reference to an interface-backed class? (non-trivial)

2004-06-20 Thread Clute, Andrew
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

RE: How to use DUAL table for multiple types of queries

2004-05-20 Thread Clute, Andrew
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

RE: Bug in QueryReferenceBroker?

2004-05-13 Thread Clute, Andrew
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

RE: Trying to return an unknown connection2!

2004-05-12 Thread Clute, Andrew
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

RE: Trying to return an unknown connection2!

2004-05-12 Thread Clute, Andrew
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

Bug in QueryReferenceBroker?

2004-05-12 Thread Clute, Andrew
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

RE: Bug in QueryReferenceBroker?

2004-05-12 Thread Clute, Andrew
); } +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

Issue with Iterator.hasNext() and custom RowReader

2004-04-01 Thread Clute, Andrew
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

RE: soft-deleting objects

2004-03-23 Thread Clute, Andrew
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

RE: OJB + MSSQL sp_executesql problem

2004-02-26 Thread Clute, Andrew
. 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

RE: OJB + MSSQL sp_executesql problem

2004-02-26 Thread Clute, Andrew
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

RE: how to keep repository-user.xml mappings separate from ojb.sar?

2004-02-25 Thread Clute, Andrew
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

Bug (and Fix) with a custom RowReader and PB.getObjectByQuery()

2004-02-24 Thread Clute, Andrew
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

Xdoclet: Why the default size of 24 on VARCHAR's in the new version?

2004-02-12 Thread Clute, Andrew
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

RE: Bug in AbstractSequenceManager found!!

2004-02-12 Thread Clute, Andrew
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

Bug in AbstractSequenceManager found!!

2004-02-11 Thread Clute, Andrew
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

Status on 1.0 release?

2004-01-29 Thread Clute, Andrew
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

RE: [PB API] concurrency problems

2004-01-29 Thread Clute, Andrew
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

RE: [PB API] concurrency problems

2004-01-29 Thread Clute, Andrew
, 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

Migration from RC4 - RC5?

2003-12-15 Thread 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

RE: [OFF-TOPIC] JAVA JOB QUESTIONs

2003-12-12 Thread Clute, Andrew
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

Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
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

RE: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
). -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

RE: Best practice for using ODMG with EJB? (Cache also)

2003-10-17 Thread Clute, Andrew
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

Connection failed if DB restarted?

2003-10-17 Thread Clute, Andrew
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

RE: Connection failed if DB restarted?

2003-10-17 Thread Clute, Andrew
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

Problem with refreshing references; Possible bug?

2003-10-16 Thread Clute, Andrew
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

RE: Problem with refreshing references; Possible bug?

2003-10-16 Thread Clute, Andrew
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

OJB Xdoclet: Is there a way to get class-descriptor attributes to extend to subclasses?

2003-09-18 Thread 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

RE: Xdoclet: How to use base-class properties with different colu mn names in children?

2003-09-12 Thread Clute, Andrew
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:

Xdoclet: How to use base-class properties with different column n ames in children?

2003-09-10 Thread Clute, Andrew
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

RE: Xdoclet: How to use base-class properties with different colu mn n ames in children?

2003-09-10 Thread Clute, Andrew
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