If you want to access archives now, edit "db.apache.org" to
"jakarta.apache.org" manually in the mailing list address in the url. It was
overlooked when the site moved.
--Bill.
- Original Message -
From: "ow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003
Thanks, Scott.
Would database implementation be the right place for this code?
If yes, is anyone working on it?
If not, Can someone like me contribute to OJB framework?
Thank, you.
Max.
-Original Message-
From: Scott Howlett [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26,
> The example I gave was a Customer and a Product. The Customer has a
> collection of Products, the relation of which is maintained in say a
> CUSTOMER_PRODUCT table. Because it is "non-decomposed", I do not create a
> CustomerProduct class. Now in client code, I do:
>
> Customer customer = // l
Hi David,
- Original Message -
From: "David Warnock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 12:03 AM
Subject: How many broker instances?
> This may seem like a silly question. But anyway
>
> In a servlet style environment (where multiple threads opera
This may seem like a silly question. But anyway
In a servlet style environment (where multiple threads operate on an
object at a time). How many broker objects should I use?
One per thread?
One per session?
One per request?
One to share?
What are the implications of the various options. So far I
Hello,
Way back in OJB 0.9.7 I brought this issue up and I don't think I got much response.
I took an OJB hiatus for a while and now I'm back and have run up against this problem
again. The problem is that when I insert a record, OJB tries to insert null values
into fields that I did not exp
- Original Message -
From: "Emmanuel Dupont" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 8:41 AM
Subject: RE : RE : reverse-db
> Mysql with "mysql-connector-java-3.0.6-stable" jdbc driver.
>
>
>
> I don't manage to see my database tabl
Is there a question here?
The build file looks reasonable to me.
The sun reference enhancer is kind of nasty about only enhancing files in
the correct order and not telling you clearly if there is a problem, and is
exceedingly slow if you enhance them one by one. The tjdo project on
sourceforge h
Hi,
I've setup a non-decomposed M:N relationship in my datastore so now how do I
CRUD (create, read, update and delete) records that participate in this
relationship? An example provided by the OJB website for adding records to
datastore does exist but doesn't reflect any type of advanced rela
The JDO tutorial uses the pm.getObjectById() method to get an instance of a
product to delete it. Shouldn't it be possible to do the same via
pm.newQuery?
In my JDO test project I first tried it using the pm.newQuery() method to
get a user object/record. Retrieving was fine, but when I try to delet
Since I didn't find any other solutions on the web, I worte an ant build.xml
that generates jdo metadata files based on @jdo xdoclet tags in java files
having the @jdo.persistence-capable tag and afterwards uses these metadata
files to automatically enhances the class files using the sun JDO enhanc
Hi again,
Right, write conflicts are detected with OL. But will there be an
efficient merge of the updated graph?
No.
Say only one of the graph's n objects was modified. Is OJB's use of
its cache going to compare the before/after status of each graph
object and perform a db update on only
Haha
|-Original Message-
|From: Dennis Ryan [mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 1:08 PM
|To: OJB Users List
|Subject: Re: reverse-db
|
|
|
|I let it run overnight before I decided it was quicker and
|easier to do it
|by
I let it run overnight before I decided it was quicker and easier to do it
by hand!
[EMAIL PROTECTED] wrote:
> Is 3 hours too long?
>
> LOL
>
>
> |-Original Message-
> |From: Ebersole, Steven [mailto:[EMAIL PROTECTED]
> |Sent: Thursday, February 27, 2003 10:29 AM
> |To: 'OJB U
Is 3 hours too long?
LOL
|-Original Message-
|From: Ebersole, Steven [mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 10:29 AM
|To: 'OJB Users List'
|Subject: RE: reverse-db
|
|
|Thanks a bunch. I'll just let it sit for a bit then.
|
|
hi theo,
i switched those two ifs. it's in the repository now.
thank you.
jakob
Theo Niemeijer wrote:
Hi all.
I noticed that a problem described in october 2002 is still present in the
0.9.9 version i just downloaded.
The reported problem is in
org.apache.ojb.broker.singlevm.PersistenceBrokerImp
Just to make certain that I understand this correctly (as I asked this very
question in a seperate thread and got the opposite answer):
If I map a m:n relationship letting OJB manage the association table
(documentation refers to this as non-decomposed m:n), can I use the
PersistenceBroker API and
> > With OL you have a version column for each row.
> > Say you load an object with version=15.
> > you send it to the client.
> > The client works on it and posts the modified object back to the server.
> > the server then update the database.
> > With OL it checks if the version field in the inst
Hi again
Right, write conflicts are detected with OL. But will there be an
efficient merge of the updated graph?
No.
Say only one of the graph's n
objects was modified. Is OJB's use of its cache going to compare the
before/after status of each graph object and perform a db update on only
ant jar-debug will do the job
Joerg Lensing wrote:
hi,
i'm using eclispe 2.1 and want to use the integrated debugger. But the
java-files must be compiled with
special options within the build. Cause I'm new to ant - what do i have
to change?
hi,
i'm using eclispe 2.1 and want to use the integrated debugger. But the
java-files must be compiled with
special options within the build. Cause I'm new to ant - what do i have
to change?
-
To unsubscribe, e-mail: [EMAIL PRO
Sorry,
It still doesn't work. Is there any Mysql incompatibilities ?
Reverse-db2 shows meall my tables but it can't generate xml mapping
yet..
Any idea ?
-Message d'origine-
De : Robert S. Sfeir [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 27 février 2003 17:37
À : OJB Users List
Obj
hi roger,
i recently implemented a 'fix' to _prevent_ multiple alias for the same
table
so i think we should work together on this feature.
jakob
Janssen, Roger wrote:
Hi,
after asking a few times whether OJB supported this feature (short recap: we
have issues and keywords, both in sepera
Hi,
i tried to send a patch to this list so someone can integrate it into the
cvs-head.
The list does not accept messages larger then 10K, the files included in the
patch are larger!
Can send the patch to someone (an OJB developer) who can have a look at it?
please. someone...
Roger J
Not at all familiar with mysql. You could try entering mysql's wilcard
character (typically '%').
|-Original Message-
|From: Emmanuel Dupont
|[mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 10:42 AM
|To: 'OJB Users List'
|Subject: RE : RE : reverse-
Hi again (again),
Hi again,
With the PB api you can ignore swizzling as you can use
optimistic locking
with timespamp or version labels to detect write conflicts.
Can you expand on the PB approach a little? How is it that
no merge is
necessary with optimistic locking?
With OL you have a
If I remember right, the first popup put the name of your db, the
second leave blank. If that doesn't work flip the info, blank first db
name second.
On Thursday, Feb 27, 2003, at 11:41 US/Eastern, Emmanuel Dupont wrote:
Mysql with "mysql-connector-java-3.0.6-stable" jdbc driver.
I don't ma
Mysql with "mysql-connector-java-3.0.6-stable" jdbc driver.
I don't manage to see my database tables in the window
What can I do ?
-Message d'origine-
De : Ebersole, Steven [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 27 février 2003 17:30
À : 'OJB Users List'
Objet : RE: RE : rever
I never even got to that point. The catalogs and schema entries would be
for RDBMSs supporting those concepts. What database are you using?
|-Original Message-
|From: Emmanuel Dupont
|[mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 10:37 AM
|To: 'OJB Us
Thanks a bunch. I'll just let it sit for a bit then.
|-Original Message-
|From: Mahler Thomas [mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 10:27 AM
|To: 'OJB Users List'
|Subject: RE: reverse-db
|
|
|Reading the metadata of a DB can take a *
I have the same trouble but my database is not large.
In fact I didnt' understood what I have to put in the fields :
Enter regular expression to match catalogs
Enter regular expression to match schemas
What did you put ?
-Message d'origine-
De : Ebersole, Steven [mailto:[EMAIL PROTEC
Reading the metadata of a DB can take a *very* long time.
15 minutes for Oracle is not long...
cheers,
Thomas
> -Original Message-
> From: Ebersole, Steven [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 5:17 PM
> To: OJB Users List (E-mail)
> Subject: reverse-db
>
>
> I h
Hi again,
> > With the PB api you can ignore swizzling as you can use
> optimistic locking
> > with timespamp or version labels to detect write conflicts.
>
> Can you expand on the PB approach a little? How is it that
> no merge is
> necessary with optimistic locking?
With OL you have a ver
I have a pretty large database which a need to map, and was hoping to use
the reverse-db tool to at least get an initial working copy.
So I launch the tool, and connect to my database fine. However, as soon as
I hit "read" (which I believe is the next step), the generator just
hangs/locks. Not s
Hi,
But if we do NOT have a class's source code. Such
reference id instrution seems impossible.
Regards,
Rice
--- Mahler Thomas <[EMAIL PROTECTED]> wrote:
> Hi Rice,
>
> this kind of intrusion would be avoidable.
> But at a tremendous cost of complexity.
> We decided to have this intrusion to
Actually the problem we were trying to get around wasn't so much the long
transactions (as Castor does have support for that), but the performance hit
of serialization and de-serialization and network communication of
large/deep object graphs inherent in EJB environments. The platform-neutral
long
Hi,
I have just started converting our system to use OJB instead
of Castor, so I
cannot speak to the PB v. ODMG approach. However, our
perferred approach
has been to implement long transactions using what are named
DataTransferObjects. Especially if you are using a session
bean layer, the
DTO
Hi all,
>
> I have just started converting our system to use OJB instead
> of Castor, so I
> cannot speak to the PB v. ODMG approach. However, our
> perferred approach
> has been to implement long transactions using what are named
> DataTransferObjects. Especially if you are using a session
I have a trouble with OJB Scheme Generator (\build reverse-db).
I have a database and I want to generate the xml files and the java
objects.
I connected to the database and nothing happens.
I clicked on the "Read" button and I had these two questions :
Enter regular expression to matc
Hi Rice,
this kind of intrusion would be avoidable.
But at a tremendous cost of complexity.
We decided to have this intrusion to OJB internals simple.
I don't think it's a *real* problem. those extra attributes can be
effectively hidden from application developers.
cheers,
Thomas
> -Origina
I have just started converting our system to use OJB instead of Castor, so I
cannot speak to the PB v. ODMG approach. However, our perferred approach
has been to implement long transactions using what are named
DataTransferObjects. Especially if you are using a session bean layer, the
DTOs can be
Hi,
>>It seems that for jdo implementatin
>>without code enhancement , such intrusion is not
>>avoidable.
We have recently moved from using Castor to using OJB. In Castor you don't
have to specifically have attributes in your model classes for the foreign
keys (and that is without any intrusion)
Hi again,
One reason I ask is that long transactions seem to imply _stateful_
Session beans + OJB, and I haven't seen much discussion or examples
relating to this combination (although there are lots of _stateless_
Session bean + OJB discussion/examples).
My core data is essentially a tree, so
- Original Message -
From: "Christopher C Worley" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 4:10 PM
Subject: Re: Newbie question - Unable to open database
> Joshua,
>
> Add jcd-alias attribute to jdbc-connection, set it equal to "defau
Hi,
after asking a few times whether OJB supported this feature (short recap: we
have issues and keywords, both in seperate tables, keyword with foreign key
linked to issue, 1 issue may have multiple keywords : ojb does not support
the following query -> give me all issues that have the keywords
Joshua,
Add jcd-alias attribute to jdbc-connection, set it equal to "default".
Then if your repositlry.xml is in WEB-INF/classes, you should be able
to use:
db.open("default", Database.OPEN_READ_WRITE);
-chris wroley
I am using OJB version 0.9.9. When executing the following line:
d
Joshua,
Add jcd-alias attribute to jdbc-connection, set it equal to "default".
Then if your repositlry.xml is in WEB-INF/classes, you should be able
to use:
db.open("default", Database.OPEN_READ_WRITE);
-chris wroley
I am using OJB version 0.9.9. When executing the following line:
d
Excuse me Thomas.
The listing of the log was of an old one where I tried to cheat OJB putting MySQL
instead of MsAccess to see what would
happen.
Here is the one using MsAccess. Same problem.
15:55:50,418 - DEBUG org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl -
createPersistenc
Hi,
I just read discussion on tss website
http://www.theserverside.com/home/thread.jsp?thread_id=18066&article_count=33#75045
I find that ojb has similar problem "reference id
intrusion to the domain model" for reference mapping.
For example, in Article we have to introduce another
field productG
Sweet, that's perfect. The documentation was just missleading then when it
states that the PB does not manage related objects.
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]
|Sent: Thursday, February 27, 2003 2:15 AM
|To: [EMAIL PROTECTED]
Hello,
I remember having seen previously conversation on this list concerning
getting OJB to be able to work with LOBs in Oracle. I remember there
being some philosophical debate on how best to attack this problem, and
I remember that some people had patched their own code to get this to
work
Hi Jose,
There seems to be some config problem with your repository:
>From the stacktrace I learn that PlatformMySQLImpl produces a problem.
You should setup repository.xml to use the MsAccess platform and not the
MySql platform!
cheers,
Thomas
> -Original Message-
> From: José Manuel
I am using OJB version 0.9.9. When executing the following line:
db.open("/WEB-INF/classes/repository.xml",
Database.OPEN_READ_WRITE);
I receive the following error when attempting to open a database
java.lang.NullPointerException
java.lang.NullPointerException
I'm using OJB 0.9.9 with MsAccess and I got an error from the ODBC
controller: Optional function not implemented.
Got someone a similar error with Access?
The update statement OJB generates is very simple DELETE FROM
palabrasClaveRevisor WHERE revisor=? AND palabraClave=? .
palabrasClaveRevisor i
Hi,
I usually use Map when a object in collection is
needed to be retrieved by key and the collection is
too big to scan the collection to get the wanted
object specified by key.
Regards,
Rice
--- Christopher C Worley <[EMAIL PROTECTED]> wrote:
> Rice,
>
> I have not. It may be common, I was
Hi,
> -Original Message-
> From: Rice Yeh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: How to handle java.util.Map
>
>
> Hi,
> In OJB document, I can find information on how to
> handle collection mapping. However, I can not f
Rice,
I have not. It may be common, I was just wanting to see an example. It
may be a helpfull option one day.
From my experience i cannot visualize how an object would relate to
another object with a map. I am not saying your design is wrong. Maybe
I'll learn somthing new ;)
-chris wrole
Hi,
I do not really understand what you want to ask. I
just have a class with a java.util.Map field and try
to map it. Do people NOT use java.util.Map in object
modeling?
Regards,
Rice
--- Christopher C Worley <[EMAIL PROTECTED]> wrote:
> Rice,
>
> I am curious to know when would you need to
I apologize, i made a mistake, the tutorial2 is oK !!!
Have a good day.
-Message d'origine-
De : Emmanuel Dupont [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 27 février 2003 15:13
À : 'OJB Users List'
Objet : Tutorial2 still doesn't work ?
All,
Sorry again,
I
Rice,
I am curious to know when would you need to use a Map?
-chris worley
Hi,
In OJB document, I can find information on how to
handle collection mapping. However, I can not find
information on how to handle java.util.Map. Is it
supported?
Regards,
Rice
All,
Sorry again,
I have this error in the tutorial2 execution :
[0] List all product entries
[1] Enter a new product
[2] Edit a product entry
[3] Delete a product entry
[4] Quit Application
type in number to select a use case
0
The list of available products:
org.apache.ojb.
For now people can change the listId parameter to equal
jakarta.apache.org instead of db.apache.org. Then bookmark it so you
never have to worry about it again ;)
-chris worley
Error occurred
Required parameter "listId" or "listName" is missing or invalid
Hopefully, it'll be fixed soon. Thank
For now people can change the listId parameter to equal
jakarta.apache.org instead of db.apache.org. Then bookmark it so you
never have to worry about it again ;)
-chris worley
Error occurred
Required parameter "listId" or "listName" is missing or invalid
Hopefully, it'll be fixed soon. Thank
Hi all.
I noticed that a problem described in october 2002 is still present in the
0.9.9 version i just downloaded.
The reported problem is in
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.java,
lines 738 to 757 (the changes marked by LEANDRO and MBAIRD).
These two if-statements are in the
Hi,
In OJB document, I can find information on how to
handle collection mapping. However, I can not find
information on how to handle java.util.Map. Is it
supported?
Regards,
Rice
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, mor
Hi all,
I just checked it against hypersonic. It works!
But I'd also prefer not to implement for numeric columns.
IMO ssing
crit.addSql("upper( INTERNAL_PRODUCT_ID) like '%" + new Integer(
theProductModel.getInternalProductID() ).toString() + "%'" );
is a reasonable workaround.
just my 0.02 E
If I am not mistaken, the use of LIKE operators on numeric columns is not
part of the standard SQL92 implementation. Both Oracle and MySQL implement
this as an extension. If it is a platform specific extension then it is
probably not reasonable to expect OJB to explicitly support it.
just my $
Hi,
this is a know problem.
> Hi Joerg,
>
> I have checked in a fix for tutorial2. Please replace the
> Application.java file of tutorial2 with the new version
> you could get here:
>
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/test/org/apache/ojb/tutoria
l2/
>
> With this fix and the out of box
All,
I try to run the OJB'tutorial2 (ODMG API) and I have the error.
<<
C:\JakartaOJB\jakarta-ojb-0.9.9>bin\tutorial2
[org.apache.ojb.broker.metadata.ConnectionRepository] INFO: Could not found
org.apache.ojb.broker.metadata.JdbcConnectionDescriptor for PBKey org.apac
he.ojb.broker.PB
Hi,
I have to say that I am not convinced that you can/should be doing a "Like"
on an Integer field. I'm fairly certain that on many databases you can only
do Like on a VARCHAR field. I'm not sure that it makes any logical sense to
do Like on anything but a VARCHAR, let alone whether OJB should su
A workaround for the problem mentioned below is to use addSql:
crit.addSql("upper( INTERNAL_PRODUCT_ID) like '%" + new Integer(
theProductModel.getInternalProductID() ).toString() + "%'" );
Note that in this case you have to use the actual db column name. Is this
the only solution?
Rgds,
John
Hi Jakob,
>>how does sql handle like with integers ?
No problem, the following works fines:
"select * from products where internal_product_id like '%25%'"
Rgds,
John
-Original Message-
From: Jakob Braeuchi [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 19:03
To: OJB Users List
Subj
Hi Sebastian,
> -Original Message-
> From: Sebastian Thomschke [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 5:55 PM
> To: [EMAIL PROTECTED]
> Subject: Using JDO metadata file for OR mapping
>
>
> In JDO mode, does OJB currently requires the O-R-mapping to
> take place
Hi Jakob
I suspected as much -- the only reason I have been using column names was
that in previous versions of OJB using field names in criteria
with non-simple types (e.g. ones that require field conversions) the
conversions did not seem to take place so I was forced to use column names
in crite
Hi,
maybe this can point you to a solution:
You can use it in the in repository.xml.
I think you'll find more explanations on thin in the docs.
Regards,
Max
> -Ursprüngliche Nachricht-
> Von: Max Vesely [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 27. Februar 2003 04:27
Take a look at Tutorial 3. There is an example for what you want to do.
You can use PB (I'm using it myself).
About CUSTOMER_PRODUCT row, it 's managed by OJB. Don't worry about that. You just
have to call your method "setProducts" from the customer instance.
Regards
Sylvain
-Message d'ori
Hi,
reverse-db2 isn't finished yet. There was some refactoring in metadata
handling within OJB and during this process a few things were commented out
in reverse-db2, so it is possible that you hit one of these spots, it is
also possible that the function you are trying to use isn't implemented ye
77 matches
Mail list logo