Hi,
Some time ago, I ran a comparison of MSSql drivers.
http://article.gmane.org/gmane.comp.jakarta.ojb.user/7367
http://article.gmane.org/gmane.comp.jakarta.ojb.user/7369
(Note The first link contained errors which I updated in the second
reference)
As I said in the original post, the benchmar
Giora,
the elements and
must specifiy the foreign key columns in
the indirection table, not the primary keys of the linked tables. These fk
columns necessarily have different names as the are in the same table.
HTH
Gerhard
Original Message
Subject: SQLGenerator
Date: Wed
On Thu, 09 Oct 2003 15:09:11 +1300, Shane Mingins wrote:
Thanks for your fast response ...
In the meantime I found the bug in my program. As You suggested the
mapping was errorneous:
I pointed the "inverse-foreignkey" to the primary key of Certificate
instead of the correct foreignkey.
It would be
Hi Armin !
In fact it seems that it is a driver error. We are using MSSQL server with
jtds driver.
I retrieve from db a proxy object; I set its attributes and lock with
UPGRADE (even WRITE) mode in order to make an update database. I commit but
nothing happens. No update is done!!!
I'm obliged t
Hi,
Is there any possibility, without using QueryBySQL , to create a query join
over two tables which not have relationship-definition ?
Thanks a lot.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Original Message
Subject: SQLGenerator
Date: Wed, 8 Oct 2003 15:26:40 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi Thomas.
My name is Giora.
I am using OJB (Love it).
In my repository I have the following mapping for a collection using m:n
without decomposition:
Hi
I am no expert and it has been a few months since I used the ODMG API.
Try this ---
Customer customer = new Customer("no", "one", "here", 0, "", 2, new Date());
for (int i = 0; i < 3; i++)
{
customer.addSchein(new Certificate("%PS1\n", customer));
}
Transaction tx = odmg.newTransaction(
Hello!
Why does the following Code:
Customer customer=new Customer("no", "one", "here",0, "", 2, new Date());
for(int i=0; i<3; i++){
Transaction tx = odmg.newTransaction(); tx.begin();
tx.lock(customer, Transaction.WRITE); customer.addSchein(new
certificate("%PS1\n", cust
Hello,
* the class-descriptors:
public class Account {
public Organization organization;
public AccountAddress accountAddress;
private int account_id;
private String login;
private String password;
private
Sorry, would be more like...
"select profiles from Profile where group = $1"
where group is matched on oid.
On Wednesday, October 8, 2003, at 04:46 PM, Brian McCallister wrote:
"select profiles from Profile where profile.group = $1"
Is there a way to construct an OQL query (I am using the OTM, but it
should be the same conceptually as the ODMG api) to query against the
identity of a child persistent object. For example:
class Profile
{
private Group group;
}
class Group
{
}
primarykey="true" autoincre
Hi Armin,
took some time but I was able to build the testcase.
snip :-)
Why not all objects are selected and why without throwing any
exception?
Is there a workaround (instead of making a lot of primary key selects)?
as I said in my previous post "this can be" a side-effect
of eager-release,
This problem happened with me
I had forgotten to a field as primary-key
[ ]´s
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 4:19 PM
Subject: Query returns only identical instances
Hi everyone,
I'm absolutely puzzled by the follo
Thanx!
I found the documentation.
It's much easier having a docu ;-)
-- Pat
"Thomas Dudziak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Check the contrib directory (where you found the xdoclet module), also I
> would suggest that you use the CVS version (at least the xdoclet
hi thomas,
this is pretty much normal behaviour !
the first query looks for all persons having a phonenumber like "052*"
and returns these persons. when you do person.getPhones() all phones
belonging to this ONE person are returned, no matter what the number is
(at least one is like "052*").
h
Hi Michael,
On Wed, 8 Oct 2003 17:31:15 +0100, Michael Watson
<[EMAIL PROTECTED]> wrote:
Hi all,
I'm finding I quite reguarly get this exception when I'm attempting to
call
PersistenceBroker.store(Object) from multiple threads simultaneously.
Do several threads share the same PB instance?
If
Check the contrib directory (where you found the xdoclet module), also I
would suggest that you use the CVS version (at least the xdoclet module
from it), you can view and download from the CVS version on the OJB
website.
Tom
Hi all,
I'm finding I quite reguarly get this exception when I'm attempting to call
PersistenceBroker.store(Object) from multiple threads simultaneously.
java.util.ConcurrentModificationException
java.util.AbstractList$Itr.checkForComodification(AbstractList.j
ava:444)
java.util.AbstractList
hi,
i have a 1:n relationship between Person an Phones.
if i make the following query to persons, i get all persons with a phonenumber like
"052*"
crit = new Criteria();
crit.addLike("phones.number", "052*");
query = new QueryByCriteria(Person.class, crit);
thats ok!
but when if i make a
p
Hi Tom
Where can I find the documentation to the module?
I only have the xtags.xml file, which doesn't mention any anonymous tags.
Best regards
-- Pat
"Thomas Dudziak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Basically, you have to add an anonymous reference (to the class j
Oliver,
[EMAIL PROTECTED] wrote:
since the NPE is due to missing fields in the metadata,
I assume that a workaround is to add field-descriptors.
I added field-descriptors to the class descriptor of the Interface
(Template) and it worked fine, thanks.
Actually you need field-descriptors i
hi,
could you please post the sql used to search and the class-descriptors ?
jakob
balza wrote:
Hello,
I've
- table tA and tB with an inheritance relationship
- class B extending A
- class A reflect tA
- class B reflect tB
insert in class B generate an entry in table tA and in table tB
delete o
Hi all,
we use OJB1.0 RC4 against a DB2.
We want to tell OJB which columns should be included in the update statement
instead of updating all of them. The columns to update have the same name
and definition in all the tables.
Detailled information:
We have tables with many columns. Some columns h
Hi again,
this is more a repost.
Does anybody use OJB with Bea Weblogic 8.1?
Our code, which works fine with Bea 6.X could not even start with Bea 8.1
Any suggestions?
Thanks in advance!
Cheers,
Ralf
Our logfile so far:
[BOOT] WARN: Value
"org.apache.ojb.broker.metadata.fieldaccess.Persis
Basically, you have to add an anonymous reference (to the class javadoc
tag). Check the examples in the docs for the xdoclet module, there is one
with 'super'.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
I'd like to use "mapping classes on multiple joined tables" for inheritance.
Therefore my question:
How can I have XDoclet generate the following:
...
Thanx for any hints
-- Pat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hej Jan,
> -Original Message-
> From: Jan Berkel [mailto:[EMAIL PROTECTED]
> > since the NPE is due to missing fields in the metadata,
> > I assume that a workaround is to add field-descriptors.
>
> I added field-descriptors to the class descriptor of the Interface
> (Template) and it wo
Hi all,
I noticed a problem with the IN clause...
As shown in the 'Query' documentation if the SqlInLimit property is
exceeded a Criteria will be split in a OR concatenated list of INs.
That's really cool, however this works in Oracle (however with a
limitiation of 1000 ORs :) ), but in the (@
OK, I see that my questions did get answered. Thanks.
1. On the documentation - yes, reading that section is still
unclear. It still seems to say to me that one must set useAutoCommit=0
when using data sources. Also, a small quibble - but a section heading
for each attribute would be REALLY useful
Yes, it seems to be. We have had no problems with rollback since.
But I am concerned about using ConnectionFactoryPooledImpl
with Weblogic and a data source. The comments in ojb.properties
seem to imply that I should only be using ConnectionFactoryManagedImpl.
And thinking about it, I am concerned
Hi all,
I would like to report some problems I had to map two sister classes on
the same table, and make sure I am not doing anything wrong. I am using
the ODMG API, OJB RC4 with j2sdk1.4.1_01 on windows, and MySQL 4.
I followed the "Advanced O/R" tutorial, chapter "Mapping all classes on
the
Hi Olli,
[EMAIL PROTECTED] wrote:
since the NPE is due to missing fields in the metadata,
I assume that a workaround is to add field-descriptors.
I added field-descriptors to the class descriptor of the Interface
(Template) and it worked fine, thanks.
Actually you need field-descriptors in your
Hello Jan,
since the NPE is due to missing fields in the metadata,
I assume that a workaround is to add field-descriptors.
see below.
> -Original Message-
> From: Jan Berkel [mailto:[EMAIL PROTECTED]
> class="cabane.templates.Template"
> table="TEMPLATES"
> >
Please try to ad
Hi Ralf,
On Tue, 7 Oct 2003 09:14:37 +0200, <[EMAIL PROTECTED]> wrote:
Hi,
we have experienced some problems with OJB (rc3) and BEA 8.1 AppServer.
assume you are using rc4?
In the db-ojb main directory you can find a
release-notes.txt file documents most important changes.
Don't forget to replac
34 matches
Mail list logo