Re: generate global uid's

2006-04-24 Thread Thomas Mahler
Hi Dennis, org.apache.ojb.broker.util.GUIDFactory produces GUIDs that are unique across different VMs. cheers, Thomas Dennis Bekkering wrote: Hello all, I have a situation where i frequently have to merge data from different databases. Uptill now every database has it's own sequence. That

Re: C-JDBC and OJB

2005-09-02 Thread Thomas Mahler
Hi Andy, I did not use it in production, but I evaluated it as a lowcost clustering solution two years ago. I didn't find any issues and assume that it will work like a charm with the latest versions of OJB and C-JDBC too! cheers, Thomas Andy Malakov wrote: Hello All, Anybody

Re: pre-store method/hook

2005-06-03 Thread Thomas Mahler
Hi Thad, let your domain class implement o.a.ojb.broker.PersistenceBrokerAware and implent the callback methods beforeUpdate and beforeStore. For details refer to the JavaDoc: http://db.apache.org/ojb/api/org/apache/ojb/broker/PersistenceBrokerAware.html cheers, Thomas Thad Welch wrote:

Re: Mapping 2 or more all classes on the same table

2005-04-28 Thread Thomas Mahler
Dear Ramakrishna, We had this feature since 2001! Please note that OJB is not based on lies ! for details refer to the documentation under http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+All+Classes+on+the+Same+Table cheers, Thomas Ramakrishna Reddy wrote: Hi, Do we have

Re: [OT]Sorry to the community

2004-12-06 Thread Thomas Mahler
Hi Edson, I guess one of the central social techniques on mailing lists is Don't feed the troll. So I won't exlude the person in question from the mailing list. But everyone on this list should be warned when he tries to launch the next thread. But maybe he has left us for good after detecting

Re: memory leak

2004-07-31 Thread Thomas Mahler
Hi Zhe, I don't know of any major memory issues with OJB. In the OJB-junit test we execute ten-thousands of OJB calls without any memory issues. If your app usaes all memory it might well be because it allocates all memory to hold the file data. You should use a memory profiler to find out

Re: OJB Deployment Logging Issue

2004-07-13 Thread Thomas Mahler
Hi Ryan, this sounds as if ojb.properties and/or the repository files were not on the classpath. Did you follow the steps required for deploying ojb in an app server? http://db.apache.org/ojb/docu/guides/deployment.html cheers, Thomas Ryan Layer wrote: I am able to get OJB to function properly

Re: Best way to use OQL with PB

2004-06-23 Thread Thomas Mahler
Hi Clovis, Clóvis Wichoski wrote: Hi, I'm using PersistenceBroker and need use OQL only for selecting objects, then I will use OQLQueryImpl, only to make the Query object for me, but I have two issues in doubt: 1) Executing query with broker ... OQLQueryImpl oql = new

Re: When Does a New Object get its Primary Key?

2004-05-27 Thread Thomas Mahler
Hi Chris, Chris Lewington wrote: Hi all, A couple of quick questions: 1) When persisting a new object, does the in-memory one get its PK set automatically by OJB after the operation has committed, or do I have to search for it afterwards to get at the PK? The in-memory objected is automatically

Re: Destroy or reset PersistenceBroker

2004-05-27 Thread Thomas Mahler
broker.close(); Stanley Poon wrote: In our application, there is a need to destroy or release an instance of the PersistenceBroker. OJB provides PersistenceBrokerFactory.releaseAllInstances(). However, that will destroy all other instances that should not be removed. Is there a way of destroying

Re: Size of database result

2004-05-26 Thread Thomas Mahler
Hi Enrique, Enrique Medina wrote: Hi everyone, My question is related to the volume of information OJB retrieves from DB in several ways: 1) When I retrieve any object using getCollectionByQuery(), how many records are retrieved? Are all the records found in the database? all records matching

Re: Out of Memory bug

2004-05-26 Thread Thomas Mahler
Hi Alexey, you are allocating a new Kvart instance for each Resultset row. You could change the code to save tons of ram as shown below. You could also try to commit blocks of say 1 Kvarts. This will save a lot of JDBC resources. cheers, Thomas [EMAIL PROTECTED] wrote: Hello everybody! I

Re: Oracle Blob

2004-05-25 Thread Thomas Mahler
Hi Christophe, This is a known problem with Oracles thin driver. You can try to either use the thick driver or to try to use Oracle9i platform in your connection descriptor. Thomas Christophe Lombart wrote: Hi All, I'm just wondering how to defined a blob attribute for the Oracle plateform ? I

Re: PB vs. ODMG

2004-05-25 Thread Thomas Mahler
http://db.apache.org/ojb/faq.html#What%20are%20the%20differences%20between%20the%20PersistenceBroker%20API%20and%20the%20ODMG%20API?%20Which%20one%20should%20I%20use%20in%20my%20applications? Corey wrote: Hi all, Sorry, newbie posting here. I've read all the docs and played with all of

Re: OJB and XML databases

2004-05-23 Thread Thomas Mahler
hi marcus, [EMAIL PROTECTED] wrote: Hi, just looking for some advice regarding the design of a database application that is required associate archives of XML datafiles with more conventional relational type data. Each XML file will be approximately 10-50K bytes and the archive rate will be

Re: Hibernate don't manage locks bewtween several JVMs...

2004-05-10 Thread Thomas Mahler
a DatabaseLockManager along with the current implementations. A fair number of people prefer this behavior. -Brian On May 10, 2004, at 3:21 PM, Thomas Mahler wrote: Hi NiX, Ojb provides several Locking strategies. You can use Optimistic locking based on versioning. Or you can use pessimistic

Re: Hibernate don't manage locks bewtween several JVMs...

2004-05-10 Thread Thomas Mahler
Hi NiX, Ojb provides several Locking strategies. You can use Optimistic locking based on versioning. Or you can use pessimistic locking. The pessimistic locking mechanism is implemented as a pluggable component. We ship two implementations: 1. an in-memory Lockmanager implementation that can be

Re: Hibernate don't manage locks bewtween several JVMs...

2004-05-10 Thread Thomas Mahler
Hi NiX, Ojb provides several Locking strategies. You can use Optimistic locking based on versioning. Or you can use pessimistic locking. The pessimistic locking mechanism is implemented as a pluggable component. We ship two implementations: 1. an in-memory Lockmanager implementation that can be

[Fwd: mapping associations(1:1,1:n) seems not working with Oracle9i]

2004-05-07 Thread Thomas Mahler
Original Message Subject:mapping associations(1:1,1:n) seems not working with Oracle9i Date: Thu, 6 May 2004 22:31:45 +0100 From: Carla Avelans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi, Im using OJB (db-ojb-1.0.rc5) to access Oracle9i (Windows XP) and I

Re: LockServlet.war

2004-05-05 Thread Thomas Mahler
Hi Jason, During a typical ODMG session there will be thousands of calls to the LockServlet. The faster each call is handled, the faster the whole ODMG app will run. So the overall rule is to make the locking calls as local as possible! If all your servlets are running within one JVM it is much

Re: ODMG decomposed m:n association fatal error

2004-04-19 Thread Thomas Mahler
Hi Oliver, problems like this are typically caused by settings in the repository.xml files. pleasse post the mappings for your classes for further diagnostics. cheers, Thomas Oliver wrote: Hi, My m:n assiciation is qualified. I did the m:n mapping exactly like tutorial 3 explains it. In

Re: Newbie needs help with OJB in Eclipse

2004-04-17 Thread Thomas Mahler
Hi Doug, This seems like a problem with your build classpath settings in eclipse. Try to load OJB from CVS HEAD with eclipse. In CVS we have the eclipse .project and .claspath files that eclipse needs to build OJB. Thomas Doug Poland wrote: Hello, I'm trying to learn OJB but am struggling

Re: JDO and OJB newbie Question

2004-04-16 Thread Thomas Mahler
Use ANT. Using ANT to build OJB should work without problems on any platform. Thomas Charles N. Harvey III wrote: I'm having a lot of trouble building from HEAD. Do I use maven or ant? I get the STRANGEST error when I try to use ant. Its probably something with my maven/ant installation

Re: HSQLDB Issue

2004-04-12 Thread Thomas Mahler
Hi Robert Robert S. Sfeir wrote: All, I am trying to setup my app so I can use hsqldb. First time using that db with OJB. I've pointed the repository's connection info so it will find the DB files at /application-data dir, and it finds them fine since my select works, however if I try to do

Re: JDO - getObjectId, how to retrieve the id of identity obj after insert

2004-04-12 Thread Thomas Mahler
Hi Philippe, Please try to obtain the OID before committing the transaction: Object oid = pm.getObjectId(bean); pm.currentTransaction().commit(); The error message indicates that the JDO engine complains about a non-open (in your case already committed) transaction. cu, Thomas Philippe

[ann] new release 1.0.RC6

2004-03-28 Thread Thomas Mahler
Dear all, We've got a new release! Given we find no showstoppers during the next week we will approach the Project Management Committee (PMC) of the db.apache.org project to get approval to relabel this release as the final 1.0 version. Armin worked hard to get our regression testbed

Re: OJB with distributed tx and BMT

2004-03-26 Thread Thomas Mahler
Hi Francesco, OJB provides support for JTA integration, so you should be able to use it in distributed BMT (and also CMT) environments. Our JTA Mechanism works well with several J2EE containers and also Non J2EE-JTA implementation (as some CORBA ORB's with TransactionServer implementation) I

Re: JDO status for OJB 1.0 RC5

2004-03-21 Thread Thomas Mahler
Hi Angus, Angus Berry wrote: I appreciate the insight. I understand that the JDORI plugin has some additional administrative work, but is it production stable? It is production stable. But it does not scale. The JDORI has some specific limitations that will become a problem if you run OJB/JDORI

Re: Failing Connect without Exception

2004-03-10 Thread Thomas Mahler
instantiating a broker does not open connections, so why should it throw any db related exception at that time? Thomas Christian Eugster wrote: Hi I am using rc4 and I test my application by trying to connect to a shut-down mysql-server to see what happens: broker =

Re: OJB rc5 don't call toString in the object when using Proxies

2004-03-08 Thread Thomas Mahler
+1 for changing the logging Thomas Dudziak wrote: On Mon, 8 Mar 2004, Edson Carlos Ericksson Richter wrote: I don't want to start a fight. Ok, in programming world has several (thousands, maybe million) of ways to do exactly same work using same language. But I have more than 12 lines of

Re: ODMG UPDATE TOO FAST: DB not updated from jboss(daemon) and tomcat

2004-03-03 Thread Thomas Mahler
Hi Sukesh, If you can see by debugging (or easier by using the P6Spy jdbc tracer) that ojb executes the correct insert or update, then the problem can not be cause dby cache / gc interaction. The only explanation i have for such a behaviour is that a database commit is not done after

Re: Out of memory error (3)

2004-02-23 Thread Thomas Mahler
Hi Edson, I'd like to integrate your RemovalAwareArrayList! Please post it to my email address. Thomas Edson Carlos Ericksson Richter wrote: I don't know if help, but analizing Vector I've seen that when need more space, it double allocated space. ArrayList, at other side, does a less agressive

Re: enumerated types and OJB

2004-02-16 Thread Thomas Mahler
Hi Raymond, here is my approach to implemen t this: 1. store your BookingStatus fields as INTEGER columns 2. in the field-descriptors of those fields declare to use a ConversionStrategy. 3. Implement your own ConversionStrategy that reads an int value from and maps it to the corresponding

Re: JDO Tutorial

2004-02-16 Thread Thomas Mahler
Hi Daniel, Please foolow the Tutorial step by step. It' not suffient to launch the prepare-tutorials target. as mentioned in the tutorial you must call ant with-jdori prepare-tutorials enhance-jdori cheers, Thomas Daniel R. Ambrosio wrote: Hello everybody, I could not find any reference to the

[Fwd: problem with sequence manager in MySQL]

2004-02-15 Thread Thomas Mahler
Original Message Subject: problem with sequence manager in MySQL Date: Sun, 15 Feb 2004 22:16:32 +0530 From: balaji sampath [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi all, I am new to OJB and using OJB with Struts. When i need to include the auto increment field in my

[Fwd: persistence broker]

2004-02-12 Thread Thomas Mahler
Original Message Subject: persistence broker Date: Thu, 12 Feb 2004 15:33:15 -0600 From: MORRIS, JAMES (CONTRACTOR) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thomas, Is there any way to release a single instance of a persistence broker that has been closed? I see the

Re: JDO Query Performance

2004-02-08 Thread Thomas Mahler
Hi Bastian, Your understanding of that other message is correct. As the JDORI plugin mechanism does not provide any abstraction of performing selections. This is a deficit of SUN's JDORI and not of OJB! The bad news is that there is no way to get around this problem. SO all you can do for the

Re: insert object, and don't specify a value for one of the fields

2004-02-04 Thread Thomas Mahler
Hi all, I agree that it would be nice to have a declaration of initial and default values, etc. in the repository.xml. So we would need a little sub language that allows you to specify the semantics you want. For simple cases it will be only constant of arbitrary java types. For other cases

[Fwd: Fw: Can anyone help me with this Join question?]

2004-01-29 Thread Thomas Mahler
Original Message Subject:Fw: Can anyone help me with this Join question? Date: Thu, 29 Jan 2004 08:43:49 -0800 From: Jay Xu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Tom, I saw your posting quite frequently on the board. So maybe you can help me on this or send

Re: JDO and associations (1:n, m:n)

2004-01-24 Thread Thomas Mahler
Hi Hubert, Please post the xml ClassDescriptors of your classes. I could imagine that there is some trouble with the auto-update attributes of your reference- and/or collection-descriptors Thomas Hubert Behaghel wrote: Hi there, I am trying to make a miniframework with OJB, based on its JDO

[Fwd: Problems with super]

2004-01-22 Thread Thomas Mahler
forwarded you question to the ojb user list. Thomas Original Message Subject: Problems with super Date: Thu, 22 Jan 2004 13:29:41 -0500 From: Ankur Gupta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hello Thomas, I have been having some problems using super to map an inheritance

Orion App-server

2004-01-22 Thread Thomas Mahler
forwarded to the ojb-user list. Thomas Original Message Date: Thu, 22 Jan 2004 09:17:13 -0800 From: He, Paul (EDS) [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Thomas, I am just starting to use OJB recently. Oracle application server (Orion server) is our

Re: Question with JDO

2004-01-19 Thread Thomas Mahler
VENKATESH, SUMA (SBCSI) [EMAIL PROTECTED] schrieb am 19.01.04 20:06:04: Hi Suma, 1. Please post questions to the user list and not to individual developers. Hi All, Iam having some fun with JDO API. I tried to run tutorial5 . I have followed evey step in it. I get the following chain of

Re: Repository XML limitation and design question.

2004-01-17 Thread Thomas Mahler
Hello Ajitesh, Case A works without any problems. You simply define a set of ConnectionDescriptors and a set of ClassDescriptors in the Repository. In each ClassDescriptor you have a key pointing to the associated ConnectionDescriptor. Case B works too, but needs some consideration. At a given

Re: Question wrt using JDO API

2004-01-16 Thread Thomas Mahler
Please follow precicely the steps in the tutorial! You must enhance your Product class (The tutorial explains how to do it). Thomas VENKATESH, SUMA (SBCSI) wrote: Hi Iam trying to run tutorial 4 on JDO API. I get the following error: javax.jdo.JDOUserException: Class given to getExtent,

Re: Real world OJB applications

2004-01-13 Thread Thomas Mahler
Hi Sean, We have a page listing reference usages and user testimonials: http://db.apache.org/ojb/references.html some of these projects are open source. We also have sample apps in our contributions package. You'll find more details on this page: http://db.apache.org/ojb/links.html#OJB

Re: Real world OJB applications

2004-01-13 Thread Thomas Mahler
Hi Sean, Sean Dockery wrote: Thanks. I've downloaded it and will look at it later this weekend. Is OpenEMed an example of a typical OJB application? Mhh, What do you mean by typical? OJB is used in large variety of application scenarios. (E.G. in Swing based clients, in Servlets, in EJB

Re: Working on store procedure

2004-01-13 Thread Thomas Mahler
Hi Suma [EMAIL PROTECTED] wrote: Hi I posted the below question 3 days ago. Is it that new joiners are not answered OR is my question too obvious !!! Your question was answered within 6 hours by Ron Gallagher. I've also forwarded his posting to you in case you missed it. cheers, thomas Iam

Re: JDO: pmf

2004-01-13 Thread Thomas Mahler
Hi pedro, Pedro Salgado wrote: In tutorial 4 I found something like: factory = new OjbStorePMF(); Isn't this a better way to create a PersistenceManagerFactory? Properties props = new Properties(); props.setProperty(javax.jdo.PersistenceManagerFactoryClass,

Re: JDO: pmf

2004-01-13 Thread Thomas Mahler
Hi Pedro, Pedro Salgado wrote: snip Sure, this is much cleaner. But my code is only one line ;-) Yes, but if I make an additional util class I can get the same effect (1 line) and abstract from the JDO implementation ;)... Maybe one more private attribute for the pmf on usecase implementation

Re: Problem using strongly typed collections

2004-01-13 Thread Thomas Mahler
Hi Guilaume, Guillaume Nodet wrote: I've got an object model with strongly typed collections: class A { private BList bs; public BList getBs(); } class B { ... } class BList implements Collection {

[Fwd: How to call a select store procedure in OJB]

2004-01-10 Thread Thomas Mahler
Original Message Subject:How to call a select store procedure in OJB Date: Fri, 9 Jan 2004 14:56:15 -0800 (PST) From: Suma Venkatesh [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Hi Iam working on using store procedures using OJB. I want

Re: PB and OQL ?

2004-01-09 Thread Thomas Mahler
Hi tom, yes, that's possible! You can execute an OQL query without using ODMG transactions at all! (internally we are using an implicit transaction to make this possible). Simply perform the query and work with the returned Objects and store them with the PB. No problem. cu, thomas OJB

RE: PB and OQL ?

2004-01-09 Thread Thomas Mahler
hi again, OJB Users List [EMAIL PROTECTED] schrieb am 09.01.04 15:52:22: Am I right in that the type returned by the query can be configured via the OqlCollectionClass property ? yes, that's right! So I could use a base collection such as ManageableArrayList instead of the odmg

Re: History of OJB

2004-01-08 Thread Thomas Mahler
Hi Brian, Brian Sam-Bodden wrote: Thomas, Could you give us a short and sweet version of how OJB came to be? :-) Ok, here it goes. After working with several proprietary o/r layers I finally got the chance to work with ODMG compliant OO databases (POET and Objectivity) in a project. I was

Re: Can use tranditional-Chinese in where condition of OQL?

2004-01-07 Thread Thomas Mahler
Hi ! I guess you should use \ instead of ': select allproducts from org.apache.ojb.tutorial2.Product where name = The Lexer does not complain about the chinese characters but about the missing \ ! hope that help! Thomas wrote: Hi! Does anyone use tranditional-Chinese(non English)

Re: SequenceManagerMySQLImpl

2004-01-07 Thread Thomas Mahler
Hi Claudio, To work with sequence numbering you have to declare the respective attribute as autoincrement=true. If you don't do this you can not expect the sequence manager to work for those tables! Thomas Claudio Romano wrote: Hi all, i updated OJB from the rc3 to rc5. Now i have a problem

Re: Optimistic Locking - simple question

2003-12-29 Thread Thomas Mahler
Hi Luis, Luis Cruz wrote: Hello, To use the Optimistic Locking feature provided by OJB does the ACKOPTLOCK column have to be added to every table, or just the ones defined in the user mapping? You have to add a version column only for those classes that have an optimistic locking attribute (=

Re: auto-delete=true question

2003-12-23 Thread Thomas Mahler
Hi Sebastian, Did you read http://db.apache.org/ojb/tutorial3.html#Setting%20Load,%20Update,%20and%20Delete%20Cascading ? You encounter the interference of two features here: the cascading operations feature and the removal-aware collection. 1. If you remove a Child and then delete the

Re: NPE in OjbExtent

2003-12-20 Thread Thomas Mahler
Hi Gus, I assume that there is a wrong sequence of initialization calls. EIther in your code or in mine... By just looking at you stacktrace I don't get an idea what might have gone wrong. Please post the relevant code that provoke the error. It looks as if some things are not yet

Re: 3 questions about ODMG

2003-12-19 Thread Thomas Mahler
Hi João, João Mota wrote: -Using Pb with ODMG Question: When you use the PB methods with the ODMG broker, the query includes the objects touched by the current transaction? All queries, PB and OQL queries always are executed against the database. If an object returned by a query is in the cache

Re: 3 questions about ODMG

2003-12-19 Thread Thomas Mahler
Hi again, Luis Cruz wrote: snip So if an object is registered to a tx and then selected by a query, then the same instance is returned by the query. I disagree. This is only true if the object is cachable and if an empty cache implementation is not used. You are right. I simplified the

Re: JDO only work with Sun's jar (and not my own build)

2003-12-18 Thread Thomas Mahler
Hi Hubert, did you compile the jdori source with JDK 1.3 or 1.4 ? AFAIK only 1.3 is supported by SUN. I really can't tell you what's up with the JDORI sources. But it's not an OJB issue at least ;-) Thomas Hubert Behaghel wrote: Hi all, Since two days I couldn't get rid of this failure when

Re: Making all implementors of IF persistent

2003-12-16 Thread Thomas Mahler
Mhh, I guess you should add a class-descriptor for each Decorator class into the reository. then you have to define a class-descriptor for the IF and add extent class definitions for all decorator classes. Thomas [EMAIL PROTECTED] wrote: Hi, I want to map a table to an interface. I have some

[ann] new release 1.0 RC5

2003-12-14 Thread Thomas Mahler
Dear all, After a long time of preparation we finally managed to assemble a new release of OJB. We fixed a lot of bugs and we also improved the performance for all APIs. This is the last release candidate for 1.0. If no major bugs are detected within the next two weeks this release will be

Re: JDO Enhancer

2003-12-13 Thread Thomas Mahler
Hi Sebastian, Please have a closer look at http://db.apache.org/ojb/tutorial4.html. to get the tutorial app up an running you have to execute the follwing ant targets: with-jdori prepare-tutorials enhance-jdori the enhance-jdori target does the bytecode enhancement. if you habe a look at this

Re: JDO help

2003-12-12 Thread Thomas Mahler
Hi Mehboo, Please direct further question directly to the OJB user list. I do not provide OJB support on a personal basis. To answer your question: The ObjectNotPersistence Capable exception is thrown when persistent classes are not enhanced with the JDORI Bytecode enhancer. Please make sure

Re: Thoughts on OJB licensing

2003-12-11 Thread Thomas Mahler
Hi Bob, The ASF Licence, being based on the BSD license, is one of the most liberal license available in the open source arena. It's one of the declared aims of the ASF to allow any usage that does not violate copyrights even in commercial projects. So your company could even take OJB, add

Re: Thoughts on OJB licensing

2003-12-11 Thread Thomas Mahler
Hi Gus, IMO that's nothing to worry about. This is clearly only meant as a copyright protection for the sources. It does not contain any infectious clauses regarding the redistribution of binary stuff. cu, thomas Gus Heck wrote: IANAL, but this sentance worries me: You may add Your own

Re: Howto provide my own Storage Classes

2003-12-09 Thread Thomas Mahler
Hi Claus, Claus Radloff wrote: Hi, when we started, we had two distinct tables, but this solution was too slow, as we have a few hundred thousand texts. So we put our texts in one table. This improved the performance significantly. Hmm, a decent database should be able to handle a foreign key

Re: How does ODMG work?

2003-12-09 Thread Thomas Mahler
Hi diane, Jewett, Diane C wrote: I'm going through tutorial2(ODMG) and with the following: // 3. set the OQL select statement query.create(select allproducts from + Product.class.getName()); Where does allproducts get defined? allproducts is just a

Re: Howto provide my own Storage Classes

2003-12-06 Thread Thomas Mahler
The most easy approach is to use instance callbacks. See http://db.apache.org/ojb/tutorial3.html#instance%20callbacks. you can place the additional lookup logic into the afterLookup callback The storage logic can be placed in the afterInsert callback. Only disadvantage of this approach: you

Re: JDO inheritence

2003-12-05 Thread Thomas Mahler
Hi Stephan, In mapping an inheritance hierachy is not different for OJB/JDO. So if you mapping is correct everything should work fine. I've some questions regarding your classes and mapping: Stephan Wannenwetsch wrote: Hallo, I'm trying to store an object which inherits some attributes from a

Re: JDO Bug (status please)

2003-12-05 Thread Thomas Mahler
Hi Gus, Gus Heck wrote: Well, since I am relatively stuck I peeked under the hood and took a stab at fixing this, based on the assumption that the analysis in the previous news group discussion of a missing state manger is the problem. thanks for helping! Yes I guess the missing state managers

Re: JDO Bug (status please)

2003-12-05 Thread Thomas Mahler
Hi all, Good news! Thanks to Gus getting me started. I've fixed this pita bug at last! it's in CVS HEAD already. cu, thomas Thomas Mahler wrote: Hi Gus, Gus Heck wrote: Well, since I am relatively stuck I peeked under the hood and took a stab at fixing this, based on the assumption

[Fwd: How collection data stored in db]

2003-12-03 Thread Thomas Mahler
Original Message Subject: How collection data stored in db Date: Tue, 2 Dec 2003 20:33:22 +0100 (MET) From: Damir Dulitz [EMAIL PROTECTED] To: [EMAIL PROTECTED] In the ojb tutorial (http://db.apache.org/ojb/tutorial3.html) there is example for a 1:n mapping. But how and where

Re: does PersistenceBroker.getCollectionByQuery use the cache?

2003-12-01 Thread Thomas Mahler
Hi Michael, OJB puts all loaded entities (also those in collection attributes) into the cache. So if you can make sure that the updates are executed on exactly the same instances (and not a copy) of the photos stored in your collection everything should be fine. But this is exactly the

Re: ask RemovalAwareCollection again

2003-12-01 Thread Thomas Mahler
Hi Gong, You declare your collection attribute as java.util.List. That's fine! But then you have to be careful: If you *load* you collection from the db first, then OJB will automagically use a RemovalAwareCollection to fill your collection attribute. But if you do not load the collectio

Re: Collection of string

2003-11-25 Thread Thomas Mahler
Hi all, Thomas Dudziak wrote: On Tue, 25 Nov 2003, eric barbe wrote: Hi, Honestly, I did not test Hibernate, I only read the documentation. Hibernate works the other way around from OBJ for modeling the XML. What I saw for string list is this : set name=names table=NAMES

Re: Persistence frameworks

2003-11-23 Thread Thomas Mahler
Hi again Max, snip OJB manages the locking of lazy objects and Collection by a deferred locking mechanism. We are not using database mechanism for locking (e.g. row level locking) but our own LockManager mechanism. We are not using any JVM locking or synchronization mechanisms! EH!!? Huh!

Re: Persistence frameworks

2003-11-23 Thread Thomas Mahler
Hi again Max, Max Rydahl Andersen wrote: snip I had at short look at the Hibernate CVS, I did find a DCollection implementation but no DList or DMap implementation. These ODMG collections are meant to store everything. Thus you'll need some table to store the pointers (Identities in OJB) to the

Re: Persistence frameworks

2003-11-18 Thread Thomas Mahler
Hi Ken, Hibernate does have many good points too. It has some nice roundtrip generation tools which really worked. I coded only the mapping file(easy), then the tools create/modofiy your classes and db automatically, I think they can go in the other direction too. I agree, OJB should improve in

Re: dynamic proxy HOWTO+

2003-11-17 Thread Thomas Mahler
Hi Ken, Ken Brewer wrote: I just started using OJB and so far so good. I'm confused about the dynamic proxies. Previous to OJB, my object model used inheritance but no interfaces. Because I want lazy loading, I created an interface for nearly every class. I simply named these interfaces 'I +

Re: locking model in ODMG

2003-11-15 Thread Thomas Mahler
Hi, Jair da Silva Ferreira Júnior wrote: Hi, I am using ojb1.0_rc4, ODMG api with OJB queries and mysql4. My questions are: 1) What happens when two different ODMG transactions try to write lock the same object at the same time? A LockNotGrantedException is thrown yes! in one of the transactions

Re: ODMG question

2003-11-15 Thread Thomas Mahler
Hi Bob, Robert J Celestino wrote: Hello All, Trying to get my own example running using ODMG and I feel like I am missing something very basic. My simple class has 2 simple string attributes (field descriptors), one referenced attribute (reference descriptor), and one collection (collection

Re: Question about getIteratorByQuery

2003-11-10 Thread Thomas Mahler
Hi Andre, To follow an index you'll need an order by clause for the indexed column. (http://db.apache.org/ojb/api/org/apache/ojb/broker/query/Criteria.html#addOrderBy(java.lang.String,%20boolean)) If you do not use an order by clause the RDBMS is not forced to serve rows in a certain

Re: problem with tutorial part 4 example

2003-11-10 Thread Thomas Mahler
Hi again Andre, Where exactly di you get this 1.0.1 version? Our stuff was build against the 1.0 version (jdori-1_0-fcs-src-04_Mar_2002.zip): http://jcp.org/aboutJava/communityprocess/final/jsr012/index.html Please point me to the 1.0.1 release and I'll check if there are any compilation

Re: PB error when the browser is stoped

2003-11-08 Thread Thomas Mahler
Hi Sylvain, [EMAIL PROTECTED] wrote: snip The servlet engine uses parallel WorkerThreads to handle all incoming requests. So you have to make sure that parallel servlet threads don't access the broker variable without proper synchronization. How could I be sure? I answered this in my original

Re: Is it possible to have the any type mapping as Hibernate?

2003-11-07 Thread Thomas Mahler
Hi Rice, Rice Yeh wrote: Hi Thomas, I am not familiar with ODMG but I will go to study it. One question needs your help, is it meant that in the mapping file for this DListImpl I do not need to configure the attribute element-class-ref for collection-descriptor tag? That's correct! If a class

Re: ojb and distributed applications

2003-11-07 Thread Thomas Mahler
Hi Martin, Martin Dengler wrote: hi @all, i am an ojb newbie; any help is appreciated concerning the following questions: 1. ojb supports the definition of more than one jdbc-connection descriptor element at repository.xml; - does that mean, that persistent data could be stored across more

Re: Proposal - newObjectIdInstance / Identity JDO compliant

2003-10-29 Thread Thomas Mahler
Indentities from the Identity.toSTring() representation. But that's a lot of work and the benefit is rather small, as using serialize() is not a violation of the JDO spec IMO. cheers, Thomas Best Regards. PS: Thanks to Thomas Mahler for its explanation

Re: java.lang.StackOverflowError

2003-10-24 Thread Thomas Mahler
Hi Christophe, You have to define the inheritance relationship the other way round. You have to define PersonBaseImpl as an abstract class and add an extent-class pointer to ST_Person. As in the following example: class-descriptor class=demo1.PersonBaseImpl extent-class

Re: problem with PB instances creation

2003-10-24 Thread Thomas Mahler
Hi Sylvain, [EMAIL PROTECTED] wrote: Hello, I'm using OJB in my web application and I have some problem with PB instances creation. Each time I want to read/write data from/to my database I create a PB intance: broker = PersistenceBrokerFactory.defaultPersistenceBroker(); The problem is

Re: i want to rollback if a PersistenceBroker transaction failed

2003-10-19 Thread Thomas Mahler
Hello Yennon, As the broker.store(doc) happens *inside* the broker transaction the implicit store operations for item1 and item2 also happen within the same transaction. if an error occurs somewhere within broker.store() a PersistenceBrokerException is thrown. You have to catch it and

Re: Database views

2003-10-17 Thread Thomas Mahler
Hi Manjula, OJB requires to have at least one attribute per class defined as primary key. But it is sufficient to delare is as primary key in the field-descriptor. It is not required to be defined a primary key in the database. So for a view you just have to define those attributes as primary

Re: Problem with junit target on Solaris 8 / Oracle 8i

2003-10-14 Thread Thomas Mahler
Hi Troy, Having enough physical memory may not be problem, but the default memory settings of the JVM. On platforms other than Windows and Linux it may be necessary to add JVM parameters to increase heap- and stacksize above the default values. cheers, Thomas Taillefer, Troy (EXP) wrote: Hi

Re: problem building from CVS

2003-10-08 Thread Thomas Mahler
Hi, I just compiled and junit tested CVS Head. I don't have any problems so far. The newly added JDO stuff requires you to have the jdo.jar and the jdori.jar from SUN in the ojb lib directory.the current build script does not produce any error messages if those jars are not available. cheers,

Re: Invalid SQL call statements generated

2003-10-06 Thread Thomas Mahler
There seems to be a minor problem in StatementForClassImpl. We are working on it. cheers, Thomas Jason Pyeron wrote: I have been trying to fix my MySQL identity column issues, I turned off Mysql's auto increment, now using the High Low sequencer but I get preparedCall not supported, why is OJB

Re: RC3 x RC4 ?

2003-10-03 Thread Thomas Mahler
Hi Glauber, It's always recommended to use the latest (hopefully greatest) version. There has been one complaint about performance degradation, but it has not been verified so far. Thomas Glauber Andrade wrote: Hi, Thanks. I only want to know if the new version is better, because i read some

Re: ODMG patch: per-transaction implicit locking

2003-10-03 Thread Thomas Mahler
Hi Phil, I like your idea. I've just checked in some code that implements it. I added the method setImplicitLocking to the TransactionExt interface. This allows to have it available in TransactionImpl *and* in NarrowTransaction. By this trick I only had to change OJB but not OJBJ2EE_2. thanks

  1   2   3   4   >