RE: PersistenceBrokerServlet in 1.0rc1

2003-03-21 Thread Mahler Thomas
Hi Juergen, OJB 1.0 rc2 and later won't contain the PersistenceBrokerServlet any longer. After several discussion we came to the conclusion to discontinue the C/S mode. If you still need a C/S like functionality consider to work with the remaining PersistenceBrokerBean. It's a EJB SessionBean

repository.xml

2003-03-21 Thread Emmanuel Dupont
All, Where can I find the repository.xml with the sample Artikel and Kategorien (Article/ Productgroup) ? I would prefer to download it instead of typing it with errors.. Does this sample still working ? I didn't manage to make a join works yet . Tx !

RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Matthias . Roth
Hi Will, if an object has an ID (not null or zero) and the ID exists still in the Database then ODMG do nothing (also no update as you say). I made tests with OBJ 0.9.8. if the ID of an object is null then also ODMG do nothing. Because I do not use autoincrement, because I have ID's of type

RE: What happens when an insert with ODMG fails?

2003-03-21 Thread Charles Anthony
This doesn't solve your immediate problem, but you can implement your own SequenceManager to generate DECIMAL ids. Cheers, Charles. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 09:41 To: [EMAIL PROTECTED] Subject: RE: What happens when an

Problem : if the foreign key is null with ODMG

2003-03-21 Thread
Hi! If the foreign key is null, the error occur. In my case , the departments of a company. The department object there is a super-department attribute. It referance to another department. But the top department's super-department is none, it FK is null. It will raise error when

Multiple primary keys in ojb tables

2003-03-21 Thread Thomas Dudziak
Hi, I was playing with the tutorials and with the AutoBuildDb stuff when I got a complaint from MySQL that a CREATE TABLE statement tries to define multiple primary columns. After some searching I found that in the file src/test/org/apache/ojb/repository_internal.xml the tables OJB_HL_SEQ and

Re: Multiple primary keys in ojb tables

2003-03-21 Thread Felipe Ramos
Is very common, and sometimes is mandatory to use more than one primary key in a table. This is the first DB I know in which it is not possible. Thomas Dudziak wrote: Hi, I was playing with the tutorials and with the AutoBuildDb stuff when I got a complaint from MySQL that a CREATE TABLE

Do I have to supply getXXX() and setXXX(...)-methods?

2003-03-21 Thread Henrik Berg
Hi! Simple question: If I want to use OJB, do I have to make public set/get-methods for all the fields I want to store in the database? -- Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Multiple primary keys in ojb tables

2003-03-21 Thread Charles Anthony
A purely academic point, and simply for the sake of clarity : A table can only have one Primary Key; a Primary Key can consiste of multiple columns which I think is what is being discussed here. Cheers, Charles. -Original Message- From: Felipe Ramos [mailto:[EMAIL PROTECTED] Sent: 21

PB Implementation does not commit()

2003-03-21 Thread Efftinge, Sven
Hi, we are using the PersistenceBroker Implementation. Normally everything works fine. But sometimes OJB seems to begin not to persist an update or a delete. inserts still seem to work. After restarting the application everything is working fine again. We thought it might be some problem when not

Using Oracle's oci-jdbc driver

2003-03-21 Thread Thomas Dudziak
When I use the oci driver (as opposed to the thin driver) of oracle 8.1.6, then I get several execeptions: java.lang.NoSuchFieldException: m_userRsetType at java.lang.Class.getField0(Class.java:1735) at java.lang.Class.getDeclaredField(Class.java:1189) at

AW: Using Oracle's oci-jdbc driver

2003-03-21 Thread Thomas Dudziak
This is not a field I defined (I would never have a field starting with m_ ;-) but something that is hardcoded in org.apache.ojb.broker.platforms.PlatformOracleImpl as I just found out when searching in OJB's source. Tom - To

RE: Do I have to supply getXXX() and setXXX(...)-methods?

2003-03-21 Thread Mahler Thomas
No! -Original Message- From: Henrik Berg [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Do I have to supply getXXX() and setXXX(...)-methods? Hi! Simple question: If I want to use OJB, do I have to make public set/get-methods

RE: Multiple primary keys in ojb tables

2003-03-21 Thread Mahler Thomas
The autobuild feature was experimental and will not be part of 1.0! -Original Message- From: Thomas Dudziak [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:19 AM To: [EMAIL PROTECTED] Subject: Multiple primary keys in ojb tables Hi, I was playing with the tutorials

Re: Do I have to supply getXXX() and setXXX(...)-methods?

2003-03-21 Thread Will Jaynes
No you don't. Use the following setting in the OJB.properties file: PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDefaultImpl This assumes that your repository.xml mapping is based on fields in your classes. Henrik Berg wrote: Hi! Simple question: If I want

RE: Introspection error in PersistentFieldPropertyImpl ?

2003-03-21 Thread Mario Toffia
Tanks for the reply, First of all I'm not implying that it is a OJB bug since the Introspector is within the Sun's JDK but would the few lines be to harsh in performance and thus could not be integrated since I think that e.g. -- setresembleValue is not equally readable as (in code

Re: Introspection error in PersistentFieldPropertyImpl ?

2003-03-21 Thread Will Jaynes
Mario, It would be instructive for you to read the JavaBean spec at http://java.sun.com/products/javabeans/docs/spec.html Particularly section 8.2 Overview of Design Patterns. Here it describes the conventions concerning propery names and names of the setter/getter for a property. By those

RE: Introspection error in PersistentFieldPropertyImpl ?

2003-03-21 Thread Mario Toffia
Hi, Thanks and I will read the specs! Though However, in your original message you seem to be using PersistentFieldPropertyImpl. This class uses the field and doesn't relate to the JavaBean spec. It's just going after field names without regard for JavaBean properties. So if you have a

Re: Introspection error in PersistentFieldPropertyImpl ?

2003-03-21 Thread Will Jaynes
Oh, man, did I screw up. PersistentFieldPropertyImpl *does* concern property names. It's PersistentFieldDefaultImpl that deals with the fields. Sorry. However, in your original message you seem to be using PersistentFieldPropertyImpl. This class uses the field and doesn't relate to the JavaBean

Update and Save Problem

2003-03-21 Thread Claudio Romano
Hi i have a problem to update and/or save my class to the database. The repository and the class seems to be ok. But everytime i save or update my Class i become the following error: Cannot convert class java.lang.Integer to SQL type requested due to java.lang.ArrayIndexOutOfBoundsException - 2

FW: Deploy OJB in WebLogic Server

2003-03-21 Thread Lucy Zhao
Chiah: Attached is a email Christophe put together on how to deploy OJB in WebLogic Server. Cheers, Lucy -Original Message- From: Chiah Tong Kiat [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 7:06 PM To: OJB Users List; Thomas Mahler Subject: deploying ojb with WebLogic Hi

Re: How to use Criteria.addEqualByColumn

2003-03-21 Thread Jakob Braeuchi
hi michael, ojb handles non-decomposed m:n relationships internally. there's no need for you to deal with the intermediate table. jakob Michael Duffy wrote: I have an m:n relationship between two tables/classes A and B, modeled with an A_TO_B intermediate table in-between. I'd like to get all

Re: Update and Save Problem

2003-03-21 Thread Jakob Braeuchi
hi claudio, a little bit more information could be useful. jakob Claudio Romano wrote: Hi i have a problem to update and/or save my class to the database. The repository and the class seems to be ok. But everytime i save or update my Class i become the following error: Cannot convert class

Re: FW: Deploy OJB in WebLogic Server

2003-03-21 Thread Chiah Tong Kiat
Thanks for the info. Is it possible to deploying OJB in weblogic with touching classpath? I'll be deploying OJB a weblogic environment hosting different application. Is it possible to deploy OJB that's used by EJB without touching the classpath in the startup scripts. regards Tong Kiat

P6Spy

2003-03-21 Thread Emmanuel Dupont
All, How can I activate the P6Spy tool in WSAD ? I don't have any build.properties file there... Tx !

Re: OJB + Custom connection

2003-03-21 Thread Rajeev Kaul
In the same vein, is it possible to use different metadata (repository.xml) for different connections, dynamically? - Original Message - From: Armin Waibel [EMAIL PROTECTED] To: OJB Users List [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:39 PM Subject: Re: OJB + Custom connection

RE: FW: Deploy OJB in WebLogic Server

2003-03-21 Thread Lucy Zhao
You can package OJB with EJB.jar without polluting the classpath. -Original Message- From: Chiah Tong Kiat [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:35 AM To: OJB Users List Subject: Re: FW: Deploy OJB in WebLogic Server Thanks for the info. Is it possible to deploying

Re: How to use Criteria.addEqualByColumn

2003-03-21 Thread Michael Duffy
Jakob, I'm a bozo. It was operator error (again). The m:n stuff is working fine in both directions. I apologize for bothering you. Sincerely, MOD --- Jakob Braeuchi [EMAIL PROTECTED] wrote: hi michael, ojb handles non-decomposed m:n relationships internally. there's no need for you

RE: Update and Save Problem

2003-03-21 Thread Claudio Romano
i have a problem to update and/or save my class to the database. The repository and the class seems to be ok. But everytime i save or update my Class i become the following error: Cannot convert class java.lang.Integer to SQL type requested due to java.lang.ArrayIndexOutOfBoundsException - 2

Re: Deploy OJB in WebLogic Server

2003-03-21 Thread Armin Waibel
Hi Christophe and Lucy, I add your guide with minor modifications to OJB deployment doc. Could you please review the doc? Find it on CVS http://cvs.apache.org/viewcvs.cgi/db-ojb/xdocs/deployment.xml regards, Armin - Original Message - From: Christophe Lombart [EMAIL PROTECTED] To: OJB

OJB deployment.

2003-03-21 Thread Rajeev Kaul
I am debating on how to package/deploy OJB with J2EE apps. Is it best to include it as a part of the ejb.jar to avoid metadata conflicts with other apps? If OJB is deployed, for example as a .sar file within an application server like JBOSS, then how do you resolve metadata conflicts between

Re: Deploy OJB in WebLogic Server

2003-03-21 Thread Christophe Lombart
For me, that's ok. Regards, Christophe Armin Waibel wrote: Hi Christophe and Lucy, I add your guide with minor modifications to OJB deployment doc. Could you please review the doc? Find it on CVS http://cvs.apache.org/viewcvs.cgi/db-ojb/xdocs/deployment.xml regards, Armin - Original Message

Problems with OJB JDO

2003-03-21 Thread Gary Eberhart
Hello All, I'm getting the following exception when running the OBJ JDO example UCListAllProducts. Any ideas? javax.jdo.JDOUserException: Class given to getExtent does not implement javax.jdo.spi.PersistenceCapable at com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown Source)