Re: Spring Acegi and OJB

2006-08-15 Thread Brian Chaplin
I have a project that is both Struts/OJB and Spring MVC/Hibernate which uses Acegi in parts. I extended LdapPasswordAuthenticationDao to return UserDetails from the loadUserByUsernameAndPassword method but just used direct JDBC (not OJB) in this method to check the database for privileges. -

Re: Spring Acegi and OJB

2006-08-15 Thread Brian Chaplin
Thomas Dudziak wrote: On 8/14/06, Neil Smith [EMAIL PROTECTED] wrote: I am about to start a new Spring MVC project using Acegi for security access and OJB for persistance. Acegi has a JDBC implementation for accessing the user details from a database. Question: Is it advisable to write an

Re: Spring Acegi and OJB

2006-08-15 Thread Brian Chaplin
Thomas Dudziak wrote: On 8/14/06, Neil Smith [EMAIL PROTECTED] wrote: I am about to start a new Spring MVC project using Acegi for security access and OJB for persistance. Acegi has a JDBC implementation for accessing the user details from a database. Question: Is it advisable to write an

Re: Problem storing objects m:n relations using ODMG

2005-03-15 Thread Brian Chaplin
I'm having the same problem. Is there an elegant solution to this in OJB? Bart Molenkamp wrote: Hi, I've a problem storing objects using m:n relations. Suppose I have a class Person, and a class Project, and an m:n relationship between them (classic example). Now, in a single transaction, I want

How do search for quoted values?

2004-11-12 Thread Brian Chaplin
I'm using Sybase and need to search for a quoted string like O'Hare Airport In Sybase, when quoted_identifier is set on, this must be specified as 'O''Hare Airport' OJB is using 'O'Hare Airport' which causes a SQL errror. I assume I have to subclass the Sybase JCBC Implementation JDBCAccessImpl

Re: Order by across extents and question about materialization

2003-10-23 Thread Brian Chaplin
was this ever implemented? I'm having the same issue with sorting extents in RC3. Matthew Baird [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] my thoughts are we could generate a comparator on the fly and use it to sort the collection, it would definitely be done in the code, not in

UNION with QueryBySql trick

2003-10-17 Thread Brian Chaplin
FYI. I have 2 different extents (PaymentDecision and CommitmentDecision) that extend the same class, Decision . Each is persisted in a different table. When I try to retrieve Decision using QueryBySQL, I have to associate one of the descendent tables to Decision in its class-description table

need to remove from cache twice after pb.store() exception

2003-10-15 Thread Brian Chaplin
I'm using OJB 1.0 rc3 with WebSphere 5.0 J2EE Stuts 1.1 client using the default object cache implementation. This is occuring right after a transaction rollback due to a database error (org.apache.ojb.broker.KeyConstraintViolatedException:) in a call to pb.store(obj). The update method was 1

QueryBySQL endAtIndex() not working?

2003-07-24 Thread Brian Chaplin
When I issue a getIteratorByQuery when using a QueryBySQL, the startAtIndex and endAtIndex are ignored. When I issue a getCollectionByQuery on the query, it fails because it is a union: Query q = new QueryBySQL( PayeeTO.class, SELECT distinct

Re: How do I customize insert for Sybase identity columns?

2003-07-08 Thread Brian Chaplin
Armin, It worked like a champ. Definitely a need for some java doc before release 1.0 :) Thanks for the quick response! Brian Armin Waibel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Brain, - Original Message - From: Brian Chaplin [EMAIL PROTECTED] To: [EMAIL

tutorial 3 afterStore() instance callback updated for version 1.0

2003-06-20 Thread Brian Chaplin
I updated the code in this tutorial to run with version 1.0: public abstract class DBAutoIncremented implements PersistenceBrokerAware { private static final String ID_ATTRIBUTE_NAME = m_id; public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException { } public

WSAD 5 OJB RC3, can I rebuild without restarting the server?

2003-06-06 Thread Brian Chaplin
In Websphere WSAD 5.0 JDK 1.3 whenever I rebuild the project, OJB (RC3) forces me to restart the server. I think the websphere class loader might be confusing OJB. Has anyone been able to rebuild the project in WSAD using OJB without having to restart the server? Here's the detail: The boot

Re: Identity_Insert mssql

2003-06-05 Thread Brian Chaplin
Did you ever solve this? I'm having the same issue with Sybase 11.9.3 identity columns. Peter Costa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am stuck with it for right now. So I take it there is no easy way around this other than removing the Identities. If anyone has any

Can't log using P6spy in websphere

2003-05-30 Thread Brian Chaplin
I could log using P6spy in a standalone test using WSAD 5.0 but not when I invoked it under websphere server, only the startup messages would display. Any clues? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional