Re: Interfaces and xdoclet

2007-06-27 Thread Thomas Dudziak
Hi Marco, On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am developing a project using OJB with the xdoclet module as persistance layer. In my project I need to use interfaces, but I have a problem in the xdoclet annotation of the interfaces. For example, if I write: /** *

Re: Spring Acegi and OJB

2006-08-14 Thread Thomas Dudziak
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 OJB implementation of

Re: Setup-db and PostgreSQL 8.1 problem

2006-08-14 Thread Thomas Dudziak
On 8/12/06, Krzysztof Borkowski [EMAIL PROTECTED] wrote: I have just started my adveture with OJB. I've read the Getting Started and FAQ and have tried to launch the ojb_blank. It works great with the Hsqldb but don't want to work with PostgreSQL. The problem is the setup-db target. It seems

Re: Key in object not propulated from Foreign key listed in reference-descriptor

2006-08-14 Thread Thomas Dudziak
On 8/11/06, Wright, Jim (NIH/CIT) [C] [EMAIL PROTECTED] wrote: Tom, I also did a little experiment to see the order in which each object is inserted by the store method. However the only one that appeared to be inserted was my report object which is the parent of scientist and IOS objects. I

Re: Key in object not propulated from Foreign key listed in reference-descriptor

2006-08-11 Thread Thomas Dudziak
On 8/11/06, Wright, Jim (NIH/CIT) [C] [EMAIL PROTECTED] wrote: I have a field in a class called IOS that is not getting populated from the foreign key definition in the scientist reference-descriptor shown in IOS class-descriptor. My guess is that your problem stems from the fact that you use

Re: in-direction table problem

2006-07-27 Thread Thomas Dudziak
On 7/26/06, Christopher Cheng [EMAIL PROTECTED] wrote: I have a problem with the indirection table mapping. class-descriptor class=com.example.Project table=Project collection-descriptor name=members element-class-ref=com.example.Member

Re: mysql pool problem (again)

2006-07-24 Thread Thomas Dudziak
On 7/24/06, Dennis Bekkering [EMAIL PROTECTED] wrote: I checked OJB.properties and I am using ConnectionFactoryPooledImpl.class . I kill the connections with the mysql administrator tool, simulating timed out connections. I discovered that the validation query is not called on non transactional

Re: mysql pool problem (again)

2006-07-21 Thread Thomas Dudziak
On 7/21/06, Dennis Bekkering [EMAIL PROTECTED] wrote: I am experiecing problems with mysql regarding connection time outs again. This problem cannot be resolved by the pool settings provided or jdbc driver settings such as autoReconnect (wich should not be used anyhow). Here is a more detailed

Re: ERROR: Error while iterate ResultSet for query , Error setting field

2006-07-18 Thread Thomas Dudziak
On 7/18/06, ABOU LINA [EMAIL PROTECTED] wrote: Hi, i got this error using db-ojb-1.0.rc5.jar. thx in advance. [PersistentField] ERROR: while set field: object class[ stat.module.diffusion.donnees.BenefDirect target field: code target field type: class java.lang.Integer object value class:

Re: Xdoclet proxy values

2006-07-05 Thread Thomas Dudziak
On 7/5/06, Bruno CROS [EMAIL PROTECTED] wrote: I noticed that the proxy keyword can't accept dynamic value. dynamic is an accepted value in repository file and seems to be different of true. On my setup, dynamic values works fine with CGLib proxies and, proxy=true seems to not... Does

Re: obj persis broker error / axis

2006-06-30 Thread Thomas Dudziak
On 6/30/06, Enrico Silterra [EMAIL PROTECTED] wrote: I am implementing a soap service to access some data maintained by another servlet within tomcat. OJB is configured into that servlet and works fine. I am trying to add ojb into my soap service - so this is all happening within the axis

Re: oracle id in m:n tables

2006-06-19 Thread Thomas Dudziak
On 6/19/06, Dennis Bekkering [EMAIL PROTECTED] wrote: When i add a record to a collection that is of type many 2 many the following sql is executed INSERT INTO m2m_196 (ruleValueListId,ruleValueId) VALUES (?,?) , the id field is not specified in the query but the table has such a field and

Re: Bug : duplicate objects in resultset : Why add orderby columns to resultset?

2006-06-19 Thread Thomas Dudziak
On 6/19/06, Janssen, Roger [EMAIL PROTECTED] wrote: Diving deeper into the OJB code I see that the ensureColumns method in fact does two things: (1) add the columns to the returnable set of columns in the resultset (2) adds the columns to a list of columns to be used in force a join (2) is

Re: Using proxy and requirements for java-files

2006-06-14 Thread Thomas Dudziak
On 6/14/06, Joose Vettenranta [EMAIL PROTECTED] wrote: I want to use generic proxy for lazy loading 1:n connections. Say I have class Foo Do I need to have also Interface for class Foo to make proxy to work? Say like Interface IntFoo or does the generic proxy thingie work without that

Re: Tutorial problem...

2006-06-11 Thread Thomas Dudziak
On 6/11/06, Younwook Jang [EMAIL PROTECTED] wrote: Would you please provide advice about it..? I tried to search this mailing list, but I couldn't find the solution... Any information or comment also highly appreciated. This error usually happens because either the database is not correctly

Re: Utility for Forward engineering from repository.xml

2006-05-10 Thread Thomas Dudziak
On 5/10/06, Armin Waibel [EMAIL PROTECTED] wrote: Seems the apache server kills your attachment. Yep, ZIP attachements (among others) are not allowed for Apache mailing lists. You could open an issue in JIRA http://issues.apache.org/jira/browse/OJB and attach the source to this issue.

Re: Calling a Stored Procedure through OJB

2006-05-03 Thread Thomas Dudziak
On 5/3/06, Anjishnu Bandyopadhyay [EMAIL PROTECTED] wrote: Thanks Antonio for the pointer. But this does not serve my purpose. (The document talks of executing an SP when a persistable class/ bean (corresponding to a row of data in a table of database) is inserted/modified/deleted). I

Re: Spring Transactions

2006-03-09 Thread Thomas Dudziak
On 3/9/06, Saman Ghodsian [EMAIL PROTECTED] wrote: I have an implementation of my model with OJB using just PersistenceBroker. Now I'm looking into adding transactional support, looked into ODMG but it seems complex to implement since all my mapping and query is in Broker lingo, so I'm

Re: Derby configuration

2006-03-07 Thread Thomas Dudziak
On 3/6/06, Sean C. McCarthy [EMAIL PROTECTED] wrote: I'm trying to work with Derby, but I'm not sure which DB to use for the torque.database property. Looking at the torque-gen I see there is a cloudscape, is cloudscape the name to set? Any other special configuration needed? Is there any

Re: OJB 1.0.4 Error: Oracle thin driver cannot insert CLOB values with length4000

2006-03-06 Thread Thomas Dudziak
On 3/7/06, Byrne, Ailish M [EMAIL PROTECTED] wrote: This issue was related to the fact that we are using XAPool. Here is the explanation from the experts. I've cc'd them in case you have any questions. They patched our OJB 1.0.4 jar as a temporary solution.

Re: setup-db problems

2006-02-28 Thread Thomas Dudziak
On 3/1/06, Laurent Sacaut [EMAIL PROTECTED] wrote: I tested the sql statements generated by torque in project--schema under build/database directly in the mysql command-line AND using mysqlcc and they work just fine. Please use a tool that uses the JDBC driver, e.g. Squirrel SQL, or Ant's sql

Re: setup-db problems

2006-02-27 Thread Thomas Dudziak
On 2/24/06, Laurent Sacaut [EMAIL PROTECTED] wrote: When trying to run the setup-db ant task from the build file, I am getting an error coming from the build-torque.xml file. I modified builds.properties and OJB.properties to fit my test project but can get it to run. I created the database

Re: setup-db problems

2006-02-27 Thread Thomas Dudziak
On 2/27/06, Laurent Sacaut [EMAIL PROTECTED] wrote: Here are the settings from build.properties in ojb: snip These all look ok. I left the build-torque.xml file untouched, but I noticed that in the path id=torque-classpath section, it is trying to include files I don't have such as

Re: Oracle 10g compliance

2006-02-21 Thread Thomas Dudziak
On 2/21/06, Bruno CROS [EMAIL PROTECTED] wrote: Apparently, 1.0.4 does not support Oracle 10g platform (torque does but not the OJB runtime) So, i go on with oracle 9i settings. Does anyone report experience (good or bad) of that ? OJB does work just fine with 10g. As far as OJB is

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: Following the Armin's advice, i'm currently migrating from 1.0.1 to 1.0.4 I started with the 1.0.4 ojb-blank.jar to replace all files. jar of course, and configuration ones too. I stop with Torque (to generate Oracle 9i database) with an

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: sorry, can't see the link with the thread you gave me. Why not ? Alternatively, you could use the user mailing list archive link on the OJB site, and check the threads for 30 Jan. The Thread is called Problems upgrading to ojb1.04. There is

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: First you will find the ant trace of setup-db task, the torque error is painted in red. Second, you will find my build.properties used by the task. [torque-sql] 2006-02-03 13:21:48,578 [main] INFO

Re: Migrating to 1.0.4

2006-02-03 Thread Thomas Dudziak
On 2/3/06, Bruno CROS [EMAIL PROTECTED] wrote: i 'm afraid i need to repatch distributed torque-gen-3.1.1.jar to have TIMESTAMP jdbc type created for java.sql.Date and java.sql.timestamp as i wrote in an old old post. (specific to oracle 9i and older ) You might want to try DdlUtils

Re: Problems upgrading to ojb1.04

2006-02-01 Thread Thomas Dudziak
On 2/1/06, Milisic Aleksandar [EMAIL PROTECTED] wrote: Problem solved. For future reference if anybody runs into this problem, the torque.delimiter in build-torque.xml needs to be set to / since the generated SQL uses the / to separate sql statements. Perhaps this should be somewhere in

Re: Problem with OJB and Oracle9i

2006-01-30 Thread Thomas Dudziak
FWIW, DBCP seems to have some problems with Oracle (at least I had some issues where the poolable connection waited forever for a new connection). You might be better of using the datasource supplied by the Oracle jdbc driver. Tom

Re: Problems upgrading to ojb1.04

2006-01-30 Thread Thomas Dudziak
On 1/31/06, Milisic Aleksandar [EMAIL PROTECTED] wrote: Unfortunately, I have run into a different problem. I am so bewildered by it that I started another small project in one of the ojb-blank environments for ojb1.04 to test this out and make sure it has nothing to do with my environment.

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-26 Thread Thomas Dudziak
Hi folks, after some serious profiling (and finding a bug in the Mustang b68 VM), I've added some additional cleanup calls to OJB (SVN of the stable branch). Please give it a try to see whether that suffices. However, you also need to do some work in your own webapp to ensure proper cleanup. The

Re: big data postgres platform

2006-01-25 Thread Thomas Dudziak
On 1/25/06, Jean-Yves Sironneau [EMAIL PROTECTED] wrote: I have a question regarding the handling of large data with ojb on the Postgres platform. - I think Blobs are not supported on this platform, is that true ? - What is the best way to tell ojb to fetch the data from a field on each

Re: Problem with OJB and Oracle9i

2006-01-25 Thread Thomas Dudziak
On 1/25/06, Fabbri Michele [EMAIL PROTECTED] wrote: I have a poblem using OJB 1.0.3 with Oracle9i, when I try to connect to datasource defined with jndi in tomcat 5, if I define the datasource in repository it works. I'm no Oracle expert, so I'm not sure whether it helps, but you could try

Re: Tomcat 5, JNDI, Perm Gen Memory leak

2006-01-24 Thread Thomas Dudziak
On 1/24/06, Rick Roman [EMAIL PROTECTED] wrote: I am using Tomcat 5.5.4. I am almost certain it is OJB. I created a stripped down context with the minimum classes needed to run OJB and could pin the memory increase to touching anything that initiallized OJB. I have also chased down other known

OJB in Maven repository

2006-01-10 Thread Thomas Dudziak
Hi folks, I've put the 1.0.4 release into the maven repository. If all goes well, it should be visible sometime tomorrow (if not earlier). Please let me know whether it works (esp. the dependencies in the pom), because I'm not a maven user myself, rather I've been strictly following the release

Re: broken pipe?

2006-01-09 Thread Thomas Dudziak
On 1/9/06, Dennis Bekkering [EMAIL PROTECTED] wrote: wel that didn't help now it looks like this and that still doesn't help. What do I have to do? My customers go crazy over this and me too!!! I really don't know what to do anymore. On production I didn't switch to 1.0.4because lazy loading

Re: broken pipe?

2006-01-09 Thread Thomas Dudziak
On 1/9/06, Dennis Bekkering [EMAIL PROTECTED] wrote: The whole thing looks like this now, I don't use 1.0.4 though on production. Does the attribute do anything then. It runs on rc7. The custom attribute is new in 1.0.4, so it won't do anyting in older versions. I'd suggest you first update to

Re: Strange Exception

2006-01-09 Thread Thomas Dudziak
On 1/9/06, Zhong Li [EMAIL PROTECTED] wrote: Our application runs for a few weeks, today I got exceptions, The strange thing is, the application can query, delete and save, but not insert ( create new Object). We use OJB 1.0.3. From exception, it seems run out of connections. But question is

Re: broken pipe?

2006-01-05 Thread Thomas Dudziak
On 1/5/06, Dennis Bekkering [EMAIL PROTECTED] wrote: I asked my provider and they didn't change anything. They pointed out the possible absence of autoReconnect=true in my JDBC url. Does anybody knows if that might help. I'd rather have that than a ping query for every call. Hmm,

[FYI] OJB has moved from CVS to SVN

2006-01-03 Thread Thomas Dudziak
Hi, just for your information, OJB is now on Subversion. I've updated the links on the OJB website accordingly. Here are some helpful links if you want to work with the bleeding edge OJB: How to use Subversion @ Apache: ---

Re: broken pipe?

2006-01-03 Thread Thomas Dudziak
On 1/3/06, Dennis Bekkering [EMAIL PROTECTED] wrote: Hello, I suddenly out of the blue get the following trace. It happens sometimes not all the time. Does anybody knows what this means. And what can be done about it? rethrown as org.apache.ojb.broker.PersistenceBrokerSQLException:

[ANN] OJB 1.0.4 released

2006-01-01 Thread Thomas Dudziak
Hi folks, The OJB team is happy to announce that OJB version 1.0.4 has (finally) been released and should be available right now at a mirror near you. This is a feature and bug-fix release: - Release 1.0.4

Re: rrayIndexOutOfBoundsException when updating objects

2005-12-29 Thread Thomas Dudziak
On 12/27/05, Vamsi Atluri [EMAIL PROTECTED] wrote: I am currently using ojb 1.0.1. I have a table with several references. The first time when I insert to this table everything inserts correctly. The next time, when I need to update this row, I retrieve the reference from DB, update the

Re: otm transactions

2005-12-29 Thread Thomas Dudziak
On 12/27/05, Dennis Bekkering [EMAIL PROTECTED] wrote: I don't understand the following, how those the kit know if the connection already is in a transaction? public Iterator moreRealisticQueryByCriteria(Query query, int lock) { OTMKit kit = SimpleKit.getInstance(); OTMConnection

Re: What about JDO project ?

2005-12-29 Thread Thomas Dudziak
On 12/22/05, Hale India [EMAIL PROTECTED] wrote: I use OJB in our project and we are very happy with it. I just see in news that a jdo project has been created in the apache Db Project. I saw that it is question to implement JSR 243 and that the reference implementation is jpox :

Re: MS Access

2005-12-22 Thread Thomas Dudziak
On 12/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ack! I've had no problem using OJB with MSAccess as long as I use MyEclipse, but as soon as I try to run without it, I get this error in the Tomcat log: This might be a problem with multiple connections because AFAIK MS Access only

Re: Help needed regarding updating objects.

2005-12-21 Thread Thomas Dudziak
I wonder, why do you clear the cache prior to storing the objects ? And you need transactions around the store call. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help needed regarding updating objects.

2005-12-20 Thread Thomas Dudziak
On 12/19/05, Vamsi Atluri [EMAIL PROTECTED] wrote: CREATE TABLE A ( A_ID INTEGER NOT NULL, B_ID INTEGER, X_ID INTEGER, Y_ID INTEGER, A_NAME VARCHAR (40), CONSTRAINT A_PK PRIMARY KEY (A_ID), CONSTRAINT A_FK1 FOREIGN KEY (B_ID, X_ID,

Re: How to execute code before persisting an object

2005-12-05 Thread Thomas Dudziak
On 12/5/05, Christopher C. Worley [EMAIL PROTECTED] wrote: I would like to perform operations on an object before the object is persisted. One thing I would like to do is set a transactionDate field. I want the field to be set on the server side so all records can be set to the same date.

Re: Can OJB Be Built w/GCJ 3.3.x?

2005-12-01 Thread Thomas Dudziak
On 12/1/05, Craig A. Vanderborgh [EMAIL PROTECTED] wrote: We need to build OJB using gcj 3.3.2 for an embedded system. Is it possible? What experiences have people had using OJB w/gcj 3.3.x? Never tried it, but I think with the newer gcj versions this should be doable. You should check

Re: Problem with interface

2005-11-29 Thread Thomas Dudziak
On 11/28/05, Joose Vettenranta [EMAIL PROTECTED] wrote: I have like this: public class A implements Foo { private Integer id; ... getter/setter.. } public class B implements Foo { private Integer id; ... getter/setter.. } public interface Foo { public Integer

Re: MS Access

2005-11-21 Thread Thomas Dudziak
On 11/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Torque doesn't work with MS Access. That just means you have to set up your test data manually. You could add a feature request over at the DdlUtils JIRA (issues.apache.org/jira/browse/DDLUTILS) for adding support for MS Access. DdlUtils

Re: When to overwrite equals() and hashCode()

2005-11-10 Thread Thomas Dudziak
On 11/10/05, werner [EMAIL PROTECTED] wrote: I'm using OJB 1.0.3 with PB-API and it'S doing a great job. Now I'm looking for some information about the equals() and hashCode() methods: - In which cases should they be overwritten? In general it is a good idea to overwrite these methods because

Re: When to overwrite equals() and hashCode()

2005-11-10 Thread Thomas Dudziak
On 11/10/05, werner [EMAIL PROTECTED] wrote: Thanks for your answer. The hashCode function is a little mystery to me. I use a standard database setup where every table has a primary key (auto increment integer). Is it a proper solution to add the hashcode of all fields except the primary and

Re: PlatformInformixImpl

2005-11-09 Thread Thomas Dudziak
On 11/9/05, Thomas Franke [EMAIL PROTECTED] wrote: I implemented the prepareNextValProcedureStatement() method in the class above. Now the SequenceManagerStoredProcedureImpl works also together with Informix. This implementation is tested against Informix Dynamik Server 9.4 and the Informix

Re: PlatformInformixImpl

2005-11-09 Thread Thomas Dudziak
On 11/9/05, Thomas Franke [EMAIL PROTECTED] wrote: Yes, I will both of them. But I could need a little help. Where can I do the first one? Usually you would do so here: http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10700 but this seems to be down at the moment. But I guess it

Re: PB linking problem

2005-11-04 Thread Thomas Dudziak
On 11/4/05, Daniel Perry [EMAIL PROTECTED] wrote: Not sure if this is really an bug, or just a 'feature', but things dont get linked under certain curcumstances. I have two objects: activity, and attachment. An activity has a collection of attachments. /** *

Re: I/O Error: Socket closed

2005-11-03 Thread Thomas Dudziak
On 11/3/05, Charles Harvey III [EMAIL PROTECTED] wrote: Wow. Figured it out. This goes back to my Impossibly long insert time for one object e-mail conversation from last week. I actually found a bug. org.apache.ojb.broker.platforms.PlatformMsSQLServerImpl This method to be exact:

Re: testing issue

2005-11-02 Thread Thomas Dudziak
On 11/1/05, Warner Onstine [EMAIL PROTECTED] wrote: Sorry, (stupid gmail). The rest of my question when trying to connect with a test I get this error message: 2005-10-31 16:49:54,927 [main] ERROR org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl :: Instantiation of jdbc driver

Re: new cglib configuration/usage

2005-10-29 Thread Thomas Dudziak
On 10/29/05, Warner Onstine [EMAIL PROTECTED] wrote: Ok, So I finally got things converted to ojb-1.1.0 (is this correct, that's what gets built) and I went through OJB.properties and changed our relevant properties to match what was in cvs head. I also set the first test descriptor to

Re: impossibly long insert time for one object

2005-10-28 Thread Thomas Dudziak
On 10/28/05, Charles Harvey III [EMAIL PROTECTED] wrote: I just ran a little test on this query. My test, wipe out all the data. I am inserting into 3 tables when a user takes a quiz. Each had close to or over a million rows. So, I wiped 'em out. Than ran it again. Works like a charm.

Re: which version of spring will support cvs head?

2005-10-27 Thread Thomas Dudziak
On 10/27/05, Warner Onstine [EMAIL PROTECTED] wrote: Hopefully a quick question, we are currently using spring 1.1.5, but this appears to break with the latest from head (1.1.0 ?). I have dropped in spring 1.2.5 and it appears to support what's in CVS I just wanted to make sure. Yep, in

Re: MS Access

2005-10-27 Thread Thomas Dudziak
On 10/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anybody created a test database using Microsoft Access? When I run ant prepare-testdb with MySQL, it works fine, but when I switch to MSAccess, it gets this error: C:\Java\db-ojb-1.0.3\ojb-blank\src\schema\build-torque.xml:300:

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich [EMAIL PROTECTED] wrote: Thomas Dudziak wrote: I think the error comes from the XDoclet module, not from Torque. The problem is that you should not redefine the field in the subclass I haven't redefined it in the java code, so you think it should not appear

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Warner Onstine [EMAIL PROTECTED] wrote: Ok, I'm working on implementing the custom proxy class and am having some issues. When I try and use my custom Proxy class I get the following: Unable to create proxy using class:org.kuali.module.chart.bo.AccountProxy AccountProxy

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich [EMAIL PROTECTED] wrote: As for the error message, for now you can turn off the XDoclet check using the checks attribute as described here:# It's not XDoclet complaining, but Torque, so is this a Torque issue? The error message and stack trace (with -debug)

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Warner Onstine [EMAIL PROTECTED] wrote: Well, I was hoping that that would do the trick but no dice. I'm still getting the error that it cannot create a proxy using my proxy class. snip Caused by: java.lang.NoSuchMethodException:

Re: proxy question

2005-10-26 Thread Thomas Dudziak
On 10/27/05, Warner Onstine [EMAIL PROTECTED] wrote: Alright so it does appear to have been caused by some weird classpath issue. But now I'm running into another problem. org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.PersistenceBrokerException: Error invoking

Re: M:N storage removes duplicate elements

2005-10-26 Thread Thomas Dudziak
On 10/27/05, Jason A. Lunn [EMAIL PROTECTED] wrote: I have an indirection table foo_bar that happily implements an m:n relationship between foo and bar. the columns of foo_bar include foo_id, bar_id, and a unique id for the association itself (mysql backend, the id column is inserted

Re: Inheritance using Torque

2005-10-25 Thread Thomas Dudziak
On 10/24/05, Angel Cepa Pandiella [EMAIL PROTECTED] wrote: I need to map inheritance as described in http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+Classes +on+Multiple+Joined+Tables but I have to generate the ojb schema from a Torque one. I use Torque to generate the

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-25 Thread Thomas Dudziak
On 10/25/05, Bernd Laengerich [EMAIL PROTECTED] wrote: Hi, is there any way to tell OJB to use a different attribute name for a specific class instead of ojbConcreteClass? The problem is, I have a table A with objects of two different classes A und B (both using inheritance) instantiated

Re: proxy question

2005-10-25 Thread Thomas Dudziak
On 10/25/05, Warner Onstine [EMAIL PROTECTED] wrote: Hi all, This is my first project using OJB so forgive me if this is a simple question, however I can't find anything specific in the docs for this. Currently we have an object called Account which extends another object called

Re: changing OJB's log4j appender

2005-10-17 Thread Thomas Dudziak
On 10/17/05, Thad Welch [EMAIL PROTECTED] wrote: i'm trying to change OJB's log4j appender from the console to a file. so i edited log4j.properties and replace: log4j.appender.A1=org.apache.log4j.ConsoleAppender with log4j.appender.A1=org.apache.log4j.RollingFileAppender

Re: Torque, Turbine XML format

2005-10-16 Thread Thomas Dudziak
On 10/16/05, Hale India [EMAIL PROTECTED] wrote: I am looking to know if unique constraints are managed when reverse ingeneering from database using Jdbc. In torque dtd unique and unique-column tags exists so table creation is made using them, but what's happen is we generate torque from a

Re: impossibly long insert time for one object

2005-10-12 Thread Thomas Dudziak
On 10/12/05, Charles Harvey III [EMAIL PROTECTED] wrote: Hello. My application is taking years to insert an object and I can't figure out why for the life of me. For starters, my test DB is in a different location than my dev box, so there is a lag time, and I am ok with that. But for one

Re: Repository*.xml validation

2005-10-06 Thread Thomas Dudziak
On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm sorry I wasn't clear. The repository.dtd that comes with db-ojb-1.0.3 contains this definition: !ATTLIST descriptor-repository version (1.0) #REQUIRED isolation-level (read-uncommitted | read-committed |

Re: query error

2005-10-04 Thread Thomas Dudziak
On 10/4/05, David Forslund [EMAIL PROTECTED] wrote: I get the following error when trying to access a field of an element of a list: [PersistentField] ERROR: while set field: [try to set 'object value' in 'target object' target obj class: gov.lanl.PidServer.PTrait_ target field name: values

Re: ojb-blank.jar

2005-10-04 Thread Thomas Dudziak
On 10/4/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a different problem maybe you can help me with. I setup everything to work with a MySQL database like the example and it chokes in the setup-db phase because the project-schema.xml file is incomplete: ?xml version=1.0

Re: ojb-blank.jar

2005-10-04 Thread Thomas Dudziak
On 10/4/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Please direct your questions to the user list, not to us developers directly. This will give you the benefit that more people may be able to help you, and that others may benefit from the answers. Trust me, if I could figure out how,

Re: null date fields

2005-10-03 Thread Thomas Dudziak
On 10/3/05, Pedro Emanuel Castro Faria Salgado [EMAIL PROTECTED] wrote: After storing an object with a date property with a null value, I always retrieve the object with a non-null value on that property (in fact it comes with the time when the object was stored) when it should be null. I

Re: Query by Example

2005-10-03 Thread Thomas Dudziak
On 10/3/05, David Forslund [EMAIL PROTECTED] wrote: This example seems to be in the CVS version of QueryTest but not in version 1.0.3. Can I assume, though, that it works even though there is no test for it in 1.0.3? Seems that in the 1.0.x branch, the only test using QueryByExample is the

Re: One db-ojb-1.0.3.jar for several WebApps?

2005-09-29 Thread Thomas Dudziak
On 9/29/05, Hiller, Frank RD-AS2 [EMAIL PROTECTED] wrote: I'm using OJB 1.0.3. and Tomcat 5.0.28. OJB lib is in ..\webapps\MyApp\WEB-INF\lib. Where would I have to place db-ojb-1.0.3.jar if I would like to use it from several webapps? Tomcat\common\lib? Tomcat\shared\lib? Somewhere else?

Re: Turbine XML format

2005-09-27 Thread Thomas Dudziak
On 9/27/05, Hale India [EMAIL PROTECTED] wrote: I will try for Jira, but I don't know how to use it It's not difficult, simply go to http://issues.apache.org/jira/ there register for a new account for you (the account is for all Apache projects that use JIRA as their bugtracking system,

Re: Turbine XML format

2005-09-26 Thread Thomas Dudziak
On 9/26/05, Hale India [EMAIL PROTECTED] wrote: I am using Ojb from some time and would like to find out Turbine XML format definition. I have been looking at Turbine site, torque site etc. You can find the DTDs here: http://db.apache.org/torque/dtd/ the DTD currently used by DdlUtils

Re: Turbine XML format

2005-09-26 Thread Thomas Dudziak
On 9/26/05, Hale India [EMAIL PROTECTED] wrote: index tag and unique tag exists in both dtd but I found no index element nor unique element created when I have generated XML from our database using DatabaseIO().write You could add a bug to DdlUtils' JIRA. If possible please use the

Re: connection problem with ojb and Sql server

2005-09-22 Thread Thomas Dudziak
On 9/22/05, Davide Emanuele Denicolo [EMAIL PROTECTED] wrote: Hi at all! I have this problem: I'm using MS SQL Server 2000 as information repository and ojb with java My problem is that when the connection between tomcat and sql server has broken or SQL gets down,I receive this message to

Advice needed: conf of cache locking in non-clustered webapp with Spring PB-Api

2005-09-22 Thread Thomas Dudziak
Hi folks, has anybody some advice as to how to best configure Spring OJB (1.0.3) with regard to caching and locking ? My thoughts were to use either the 2-level or the oscache impl, and use pessimistic read-committed locking (how to do that with spring transactions and the PB-Api ?) ideas,

Re: ojb-blank.jar

2005-09-22 Thread Thomas Dudziak
On 9/22/05, Thomas Franke [EMAIL PROTECTED] wrote: I downloaded the ojb-blank.jar from 'http://mirrorspace.org/apache/db/ojb/db-ojb-1.0.3/'. But I'm missing the profile directory with the database profiles in it. I thought this is necessary. What does that mean? Nope, the profiles are

Re: Advice needed: conf of cache locking in non-clustered webapp with Spring PB-Api

2005-09-22 Thread Thomas Dudziak
On 9/22/05, Jason McKerr [EMAIL PROTECTED] wrote: I wrote the following article which should allow you to use locking and 2-level caching with Spring and OJB quite easily. My implementation is simple, but you should be able to change it to use whatever you want.

Re: Foreign keys inability to control CREATE TABLE order cause errors MySQL

2005-09-21 Thread Thomas Dudziak
On 9/21/05, Alex Epshteyn [EMAIL PROTECTED] wrote: MySQL gives me an error when Torque attempts to execute my generated .sql file. This happens because the a CREATE TABLE statement has a foreign key pointing to a table that hasn't been created yet. There are two possible ways I can think of

Re: Foreign keys inability to control CREATE TABLE order cause errors MySQL

2005-09-21 Thread Thomas Dudziak
The DdlUtils website is slightly out of date (should be fixed this week), here's how you'd use it in your Ant build file (with PostgreSQL in this example, but it is similar with MySQL): taskdef name=ddlToDatabase classname=org.apache.ddlutils.task.DdlToDatabaseTask classpath

Re: Weird BOOT issue

2005-09-21 Thread Thomas Dudziak
On 9/21/05, Bob Damato [EMAIL PROTECTED] wrote: I've actually been able to get OJB completely up and running in the portal. I had to hack the OJB source though to do so. In org/apache/ojb/broker/metadata/RepositoryPersistor.java, I hardcoded the SAXParserFactory to be an instance of

Re: on delete cascade

2005-09-15 Thread Thomas Dudziak
On 9/15/05, Maksimenko Alexander [EMAIL PROTECTED] wrote: 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

Re: Pb with Interface

2005-09-15 Thread Thomas Dudziak
On 9/15/05, Gru Samuel [EMAIL PROTECTED] wrote: Hi, Now i use the 1.0.3 version (the pb with ArrayIndexOutOfBoundsException is resolved). :-) I don't know how to describe in descriptors my classes diagram following : Interface Taille { int get_LargeurColonne(); } Class

Re: on delete cascade

2005-09-15 Thread Thomas Dudziak
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 by OJB-Doclet torque-schema.xml or am I miss something ? Please create a JIRA issue for this, I'll have a

Re: Pb with Interface

2005-09-15 Thread Thomas Dudziak
On 9/15/05, Gru Samuel [EMAIL PROTECTED] wrote: I don't think it is the solution. Because i have other classes (with descriptors) with '_' as the first character and it works For me, it is a problem of Interface ! I think the PersistentFieldIntrospectorImplNew class find the setter method

Re: [junk] Re: Boolean2IntFieldConversion with TINYINT

2005-09-07 Thread Thomas Dudziak
On 9/7/05, Daniel Perry [EMAIL PROTECTED] wrote: What i mean, is that you cant do: field-descriptor name=deleted column=deleted jdbc-type=TINYINT conversion=org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldCo nversion/ It would make sense to use tinyint for booleans as

Re: Boolean2IntFieldConversion with TINYINT

2005-09-07 Thread Thomas Dudziak
On 9/7/05, Daniel Perry [EMAIL PROTECTED] wrote: The following works fine: /** * @ojb.field jdbc-type=INTEGER * conversion=org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldCo nversion */ protected boolean deleted; But, if you use: @ojb.field jdbc-type=TINYINT

Re: Boolean2IntFieldConversion with TINYINT

2005-09-07 Thread Thomas Dudziak
On 9/7/05, Daniel Perry [EMAIL PROTECTED] wrote: Hmm... What about modifying Boolean2IntFeild itself so it handles both: snip Yes, this would be possible but the instanceof's have a possibly significant runtime cost, esp. since you would want to also handle Short, Long and possibly Character

  1   2   3   4   5   6   7   >