AfterLookup in PersistenceBrokerAware called with incomplete Object (reference Missing) ?

2004-03-16 Thread Stefan Schlösser
Hi, we have a situation in which an object A contains another object B defined by a ReferenceDiscriptor. The afterLookup method of A is called even though the object B inside object A is null. It seems to us that the calling sequence has changed that afterLokkup is called before the

Configuration problem

2004-03-16 Thread Nicolas . CHALUMEAU
With rc5 when I open my data base I have the following exception. java.lang.NoClassDefFoundError at org.apache.ojb.broker.util.BrokerHelper.crossCheckPBKey(Unknown Source) at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(Unknown Source)

Query Performance

2004-03-16 Thread Yannick Goujon
Hi, We use Oracle 8.1.7 and we have performance problem with a query generated by OJB. With OJB, it takes 6 minutes (maybe due to a bad mapping). We found the generated query by changing the LogLevel of the sql generator

Getting started

2004-03-16 Thread balza
Hello, what is the ant task to run to create only OJB system table (OJB_*) with OJB RC5? I've run ojb-blank task but has created a lot of table. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

ojb with mssqlserver2000

2004-03-16 Thread Christian Eugster
Hi after I have succeeded to connect to and work with mysql, postgresql, msaccess i try to use a mssqlserver2000 as backend. when i try to connect to the mssqlserver, that runs locally, i get the following exception message: [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl]

RE: ojb with mssqlserver2000

2004-03-16 Thread Charles Anthony
Hi, The jdbc driver is having trouble connecting to the SQL Server machine. My German is a little rusty, (and babelfish not overly helpful), but I suspect it's complaining that it can't connect to the socket. a) Is the host SERVER your local machine ? b) Can windows resolve SERVER to a TCP/IP

Problem after update to OJB 1.0 RC 5

2004-03-16 Thread rweiss
Hello all, we use OJB as persistence layer and really like it! But after updating from 0.9.8 to 1.0 RC 5 we get the exception below from the database driver when we do a query. We first did send it to sapdb folks as we updated the driver too (we want to provide the jdbc 3.0 features to the ojb

AW: ojb with mssqlserver2000

2004-03-16 Thread Christian Eugster
Hi Charles, thank you for answering! a) Is the host SERVER your local machine ?YES b) Can windows resolve SERVER to a TCP/IP host address ? (try ping SERVER at the command line) YES c) Is TCP/IP enabled on your MS SQLServer database ? (try Start/Programs/MS Sql Server/Server Network

[OT] RE: ojb with mssqlserver2000

2004-03-16 Thread Gelhar, Wallace Joseph
Christian, By default, MSSQL installs with ONLY Windows Authentication. To enable SQL Server Authentication, you must open the server properties, open the security tab, and enable SQL Server and Windows Authentication. Wally -Original Message- From: Christian Eugster [mailto:[EMAIL

AW: ojb with mssqlserver2000

2004-03-16 Thread Christian Eugster
It works Thank you!!! Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ManageableCollection.afterStore callback additional parameters

2004-03-16 Thread Olmanson, Alan
Hello, Could the afterStore callback method on the ManageableCollection also take the CollectionDescriptor and the current parent object of the collection? This would allow the RemovalAwareCollection to check if the collection is specified auto-delete, and if it is delete, otherwise update, or

Re: Still no luck with this query

2004-03-16 Thread Laurie Harper
If all you're interested in is managing an N:M relationship between instances of a particular type (rows in a particular table), you just need a regular N:M mapping. See the Advanced OR Mapping tutorial section on this [1]. That takes care of if there's just one object/table involved. The only

mssql: sqlexception

2004-03-16 Thread Pedro Salgado
For several reasons, I have been using a OJB/MySQL development platform and everything was going ok. The problem was when I chose to test the same application with a OJB/MSSQL platform. Apart of some minor changes, I made it all work except for a class (the source and OJB description is

XDoclet and Torque idMethod

2004-03-16 Thread Laurie Harper
The CVS version of the OJB XDoclet module requires 'autoincrement' to be set to one of none/ojb/database. I have it set to 'database' which I think should result in xxx-schema.xml containing an idMethod=native on the table declaration. Without it, Torque doesn't include the necessary SQL to

RE: mssql: sqlexception

2004-03-16 Thread Ribi Roland
Hi I had also a problem with java.util.Date on a Oracle DB. I had to change the types in my classes to java.sql.Date and it works fine now. An other way could be a conversion-class for java.util.Date (like Integer2IntegerFieldConversion) which creates a java.sql.Date from java.util.Date. Let

Re: Still no luck with this query

2004-03-16 Thread jeichels
I will think about what you said. I have read the advanced manual so many times, but somehow didn't think about that as the solution. Soon enough OR mappings will flow like SQL does, but not yet!!! I have such a common parent for another piece of the model, but hadn't here. Thank you for