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
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 !
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
All,
How can I activate the P6Spy tool in WSAD ?
I don't have any build.properties file there...
Tx !
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
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
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
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
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
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
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
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)
33 matches
Mail list logo