Re: Any Good Resources?

2003-06-12 Thread Thomas Mahler
Hi Shane, Shane Mingins wrote: Hi I just wondered if there are any good resources out there for OJB and specifically the ODMG API? I see that there is one book that includes it Professional Struts Applications: Building Web Sites with Struts, Object Relational Bridge, Lucene, and Velocity.

Re: 1:m relation not updating

2003-06-12 Thread Thomas Mahler
Hi again Shane Shane Mingins wrote: Hi Thomas These are probably going to be dumb questions but I cannot find answers anywhere. [The mail list archive is so frustrating to use.] 1. How do I lock 'b' elements from a collection using the ODMG API? tx.lock(b, Transaction.WRITE); 2. Can I double

Re: Using Torque to generate repository.xml, etc...

2003-06-12 Thread Danilo Tommasina
hi, I've looked at using the OJB-XDoclet project to do the same type of thing, but it seems to have some bugs as well. Plus, I prefer to do my modeling from the DB, and just extend those base classes. yep, we also have to work with reverse engineering, we are using torque because it gives

Problem of dynamic proxy?

2003-06-12 Thread
Hi! I declare a class-descriptor of A. Its proxy property is set dynamic. I try to load it from DB by oql command. The return collection is DList(because the OqlCollectionClass=org.apache.ojb.odmg.collections.DListImpl is set in OJB.properties), but the elements in DList are proxy objects

Re: [ojb] Re: Any Good Resources?

2003-06-12 Thread Federico Spinazzi
Thomas Mahler wrote: Hi Shane, Shane Mingins wrote: Hi I just wondered if there are any good resources out there for OJB and specifically the ODMG API? I see that there is one book that includes it Professional Struts Applications: Building Web Sites with Struts, Object Relational Bridge,

RE: Problem of dynamic proxy?

2003-06-12 Thread Mahler Thomas
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:51 AM To: OJB Users List Subject: Problem of dynamic proxy? Hi! I declare a class-descriptor of A. Its proxy property is set dynamic. I try to load it from DB by oql

DMapImpl

2003-06-12 Thread [EMAIL PROTECTED]
Hello, I'm trying to use the DMapImpl class to store java Map objects, but this exception is thrown : org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: Could not init Identity for given object class java.lang.String: java.lang.String not found in OJB Repository Does this mean

Re: DMapImpl

2003-06-12 Thread [EMAIL PROTECTED]
Sorry, it's the key of the map which can't be a java type. So what is the solution ? I can't find nothing about DMapImpl in the tutorial. Selon [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I'm trying to use the DMapImpl class to store java Map objects, but this exception is thrown :

RE: Any Good Resources?

2003-06-12 Thread Shane Mingins
Hi Thomas Thanks for all your help and answers. I found a copy of the Professional Struts Applications: Building Web Sites with Struts, Object Relational Bridge, Lucene, and Velocity (which is pretty amazing in New Zealand *grin*). I had a browse of the OJB section and they use the

RE: How to use special option to insert new record.

2003-06-12 Thread Mahler Thomas
Hi Shivaken, There is no way to do this with QueryByCriteria queries. You could use QueryBySQL to use use your own handcoded SQL. an additional option would be to implement your own SqlGenerator Implementation that use your special SQL code. But this will be more work. cheers, thomas

Re: Inheritance

2003-06-12 Thread Armin Waibel
Hi Alexander, I don't now if this will solve your problem, but in current CVS version Identity class (and some dependend classes) changed to populate both object real class = null; pkvalues = 10; object class = IBaseInterface. objectRealClass and objectClass (means topLevelClass). Give

Specifying collection-class gives error...

2003-06-12 Thread Henrik Berg
This is weird... Suddenly (or so it seems...), OJB wants all my collections to be RemovalAwareCollections. When I retrieve an object with a Collection from the database, OJB seems to instantiate the collection to a RemovalAwareCollection before it is added to the object. So if the field in

Auto-delete woes

2003-06-12 Thread onno
Long time no post but we found a strange behaviour in our app which otherwise has been running fine. it involves the auto-delete we use Broker.deleteByQuery(aQuery); //where the Query is just a 1 Primary Key from an object. This however doesn't seem to delete any linked objects (ie per defined

RE: Any Good Resources?

2003-06-12 Thread Eric Northam
There is one section on OJB in the model chapter but it is short and fairly limited. The OJB website is a better resource for OJB. The book only briefly mentions ODMG. Eric -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:34 PM To:

RE: 1:m relation not updating

2003-06-12 Thread Stephen Ting
Hi Thomas, I roughly have the same problems, but slightly different senario. The child object is actually already in the database. I want to insert the parent object into the database, whereas update some field in the child object (The child record actually is there in database). How should I do

Re: ODMG api with m:n mapping.

2003-06-12 Thread Henrik Berg
Still no answers...??? Eric Northam [EMAIL PROTECTED] writes: Has anyone come up with a solution for this? I'm having the same problem. I haven't tested whether it works with the PersistenceBroker though. Eric Subject: ODMG api with m:n mapping. From: Wara Songkran paan130 at

RE: ODMG api with m:n mapping.

2003-06-12 Thread Eric Northam
Nope and I was able to duplicate the problem under Hypersonic albeit with a slightly different error message. Eric -Original Message- From: Henrik Berg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 9:49 AM To: OJB Users List Subject: Re: ODMG api with m:n mapping. Still no

Can't view list archives

2003-06-12 Thread PWorth
I have tried using Netscape 7 and IE 5.5. All I get in the body of the message is $msgHeaders. I must be doing something foolish here no??? Peter

Possible CollectionProxy bug?

2003-06-12 Thread Edson Carlos Ericksson Richter
I think I get RemovalAwareCollection working with proxied classes. The method afterStore in CollectionProxy should not be: public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException { Collection c = getData(); if( c instanceof ManageableCollection )

Re: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Henrik Berg
Hi! I got the same problem, and solved it by simply removing auto-retrieve=true auto-update=true from the collection-descriptor...! Henrik Eric Northam [EMAIL PROTECTED] writes: Sure thing, The following causes a BatchUpdateException: Invalid argument value, message

Re: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Edson Carlos Ericksson Richter
I had this kind of error when I wrong defined the keys... M:N mappings work for me, even OJB PB Api ODMG (besides actually I don't work with ODMG). Edson Richter - Original Message - From: Henrik Berg [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12,

RE: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Eric Northam
Thanks a lot. That solved the problem. After consulting the documentation I found that the auto-update is unsupported under ODMG. It would be nice for others if this was mentioned on the Advanced O/R web page. Here's an excerpt: The auto-update attribute specifies whether OJB automatically

Looking for *.1.0. rc3.* as *.ZIP

2003-06-12 Thread Jim McLaughlin
Are there *.zip of the *.1.0.rc3.* instead of the *.tgz ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

One Object, two tables

2003-06-12 Thread Cohen, Steve
Hi all, We're starting to use OJB to replace hand coded SQL in some of our objects now. Due to a flaky architecture, we have a 'User' object that maps to several tables. Here is the schema: BV_USER USER_ID INTEGER ACCOUNT_ID INTEGER USER_ALIAS

Re: Removing objects from collections...again

2003-06-12 Thread Henrik Berg
Mahler Thomas [EMAIL PROTECTED] writes: Now what I need, is some Collection-class that removes the removed objects, but lets them stay in the database, just sets their foreign keys to 0/null or something, so that they don't reappear in the collection next time it loads from the database.

Re: Non-decomposed m:n mappings with ODMG

2003-06-12 Thread Edson Carlos Ericksson Richter
Of course, I don't use auto-update/auto-delete (that was motivation I got to PB Api). (shamed) Edson Richter - Original Message - From: Edson Carlos Ericksson Richter [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:36 AM Subject: Re:

Re: [newbie] Some junit tests failed with PostgreSQL

2003-06-12 Thread Tina Tsui
Thanks Thomas! Thomas Mahler wrote: Hi Tina, Tina Tsui wrote: Hello, I've ran junit against Hypersonic successfully, but when I ran it against PostgreSQL I get some failures. I'm using PostgreSQL 7.3.3, ojb 1.0.rc3, compiled with jsdk 1.4.01 . Any help would be greatly appreciated. Here

How Ojb drives Date datas ?

2003-06-12 Thread Emmanuel Dupont
All, I would like to know how Ojb drives the Date format. I have this trouble : When I use in Java : String strDate = 2003-06-13 15:01:01.555; SimpleDateFormat dformat = new SimpleDateFormat(-MM-dd HH:mm:ss.S); java.util.Date date = dformat.parse(strDate);

RE: Looking for *.1.0. rc3.* as *.ZIP

2003-06-12 Thread Mahler Thomas
No Zip files available! But any reasonable zip tool like winzip or winrar is able to work with tgz files... cheers, Thomas -Original Message- From: Jim McLaughlin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:32 PM To: OJB Users List Subject: Looking for *.1.0. rc3.* as

Re: Looking for *.1.0. rc3.* as *.ZIP

2003-06-12 Thread Armin Waibel
Hi Jim, - Original Message - From: Jim McLaughlin [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:32 PM Subject: Looking for *.1.0. rc3.* as *.ZIP Are there *.zip of the *.1.0.rc3.* instead of the *.tgz ? No. If you have problems to unzip try to

Re: ODMG api with m:n mapping.

2003-06-12 Thread Armin Waibel
Hi all, there is a test case called ManyToManayTest.java in the test suite ([db-ojb]/src/test/org/apache/ojb/odmg). These tests all passed well. It would be a good thing if someone would add a new test to point out the problems (bug?). regards, Armin - Original Message - From: Eric

RE: One Object, two tables

2003-06-12 Thread Mahler Thomas
Hi Steve, , Hi all, We're starting to use OJB to replace hand coded SQL in some of our objects now. Due to a flaky architecture, we have a 'User' object that maps to several tables. Here is the schema: BV_USER USER_ID INTEGER ACCOUNT_ID INTEGER

Install failed with Oracle 8i - java.sql.SQLException: ORA-01754: a tablemay contain only one column of type LONG

2003-06-12 Thread PWorth
Anyone seen this before? I can't imagine that I am the first one to try and use this platform on Oracle 8.1.7? [torque-insert-sql] Failed to execute: CREATE TABLE OJB_DMAP_ENTRIES ( ID NUMBER NOT NULL, DMAP_ID NUMBER NOT NULL, KEY_OID LONG RAW, VALUE_OID LONG RAW ) [torque-insert-sql]

Re: Install failed with Oracle 8i - java.sql.SQLException: ORA-01754: atable may contain only one column of type LONG

2003-06-12 Thread PWorth
Found the answer once I was able to access the archives. For reference: In src/schema/ojbcore-schema.xml Change: column name=KEY_OID type=LONGVARBINARY/ column name=VALUE_OID type=LONGVARBINARY/ to: column name=KEY_OID type=VARBINARY/ column name=VALUE_OID type=VARBINARY/ Peter

RE: ODMG api with m:n mapping.

2003-06-12 Thread Eric Northam
Since it was an error on my part for setting auto-update=true I'm not sure you need the test. What result should the test be expecting? It would probably more appropriate if an exception was thrown stating that auto-update must be set to false under ODMG and JDO. Eric -Original

Re: ODMG api with m:n mapping.

2003-06-12 Thread Armin Waibel
Hi Eric, - Original Message - From: Eric Northam [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:27 PM Subject: RE: ODMG api with m:n mapping. Since it was an error on my part for setting auto-update=true I'm not sure you need the test. What

RE: Problem of dynamic proxy?

2003-06-12 Thread vinicius . bomfim
Hi, You have to create an interface and your class implement that interface. And then you have to cast whith that interface. IA tA = (A)tIter.next(); Vinicius Bomfim ''-- Mensagem Original -- ''Reply-To: OJB Users List [EMAIL PROTECTED] ''Reply-To: ??? [EMAIL PROTECTED] ''From:

Problem with junit testing on Oracle 8.1.7

2003-06-12 Thread PWorth
My output is below but it looks like most of my test cases failed. Anyone have any idea what mught be causing the problem? It looks like I got through the DB creation steps just fine. Is there a properties or XML file I need to change in order to configure junit? I am running Oracle 8.1.7

MetadataException

2003-06-12 Thread Mete Kural
Hello all, I'm trying to deploy OJB 1.0 RC3 in a web application. I've been struggling for the last few hours trying to figure out why this MetadataException occurs. I'm a newbie with OJB so I have a hard time understanding some of these OJB errors. I would really appreciate it if you could

ODMG API: 1-n [My Example]

2003-06-12 Thread Shane Mingins
Hi All Having struggled with using a collection to hold a 1-n relationship using the ODMG API I have come up with the following basic code (to be refactored later). I would appreciate any comments (especially as I would not want others to use it if I have made errors). Below the code is the

Re: Deleting Large Quantities

2003-06-12 Thread Mauricio CASTRO
Thank you Ron! From the FAQ: Q: I don't like OQL, can I use the PersistenceBroker Queries within ODMG? A: Yes you can! The ODMG implementation relies on PB Queries internally! Several users (including myself) are doing this. If you have a look at the execute() method in

Why are items in the indirection table duplicate?

2003-06-12 Thread
Hi! Dose anyone have the same problem with us? We implement a ManageableDSetImpl class that extends DSetImpl implements ManageableCollection. We use it for collection type attribute in our every class and it works fine. But the indirection table is sometimes inserted duplicate rows after I

RE: ODMG API: 1-n [My Example]

2003-06-12 Thread Shane Mingins
Aggh! This only works the first time through. Subsequent attempts to add do not :-( If anyone spots why, let me know, otherwise will look on Monday. Cheers Shane -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 12:49 p.m. To: '[EMAIL

Re: Experience in High-Load Environments

2003-06-12 Thread Mauricio CASTRO
It will depends largely on which RDBMS you use, and which OJB features you use. I think all the basics features of OJB can do the trick. Mauricio Castro. - Original Message - From: Aaron Longwell [EMAIL PROTECTED] To: OJB User [EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:14 AM

Re: Experience in High-Load Environments

2003-06-12 Thread Aaron Longwell
Do you have any examples of projects you've seen/worked on? i.e.: Using Oracle, widgets.com easily handles 500,000 requests an hour I'm actually not that concerned about using OJB for my current project the load isn't that large. But I would like to know the limits of the technology.

Re: Experience in High-Load Environments

2003-06-12 Thread Mauricio CASTRO
Hi Aaron. I don't have any real life example with OJB. I worked in the design and developing of a server written in Java that handled a very heavy load and has a complex data model, it was mounted in a Solaris/sparc machine with Informix. We used object locks, caches and many features that OJB