Return Receipt
Your New to OJB
documen
t:
Hi,
I am new to OJB. I tried to look for docs on OJB at Jakarta but got nothing like a
tutorial. Could anyone point me the some good beginners reading material. Or if
possible kindly provide some sample source code?
Sanjeet
Hello:
I can't find the OJB module for XDoclet.
Does it still exist? Where should I look?
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! => ht
Ok, well I figured out that the version of Xdoclet-ojb that comes compiled
with RC4 does not have this feature in it.
I downloaded the most recent jar from CVS, and now it works, sort of.
If it put my @ojb.field description in the class comment, it will now had
the field-description, but now it a
So, let's say I have a base class 'BusinessObject' with a property called
'guid'
So, I have two classes, both extend BusinessObject, named 'dog' and 'cat'.
My database (which already exist), has a field in the tbl_dog table called
"dog_guid", and the tbl_cat has "cat_guid".
Before using Xdoclet
Works for me. Thank you.
Mike
Jakob Braeuchi wrote:
hi mike,
you can not use a whole object in a criteria, you'll have to use a
single attribute (ie. b.name).
hth
jakob
Michael Becke wrote:
Hello,
I am wondering what is the best way to handle Criteria.addEqualTo()
and Criteria.addIn() when
hi istvan,
this looks like a problem in your mapping. if ojb finds descriptors for
the fields it prefixes them with a table alias (a.name).
if no field is found the name from the criteria is used.
hth
jakob
Viczián István wrote:
Hi,
I would like to join two table, and they are in 1:n relation,
hi,
imo both features are a problem on some databases: afaik subselects do
not yet work in mysql and union is not supported in hsqldb.
jakob
Edson Carlos Ericksson Richter wrote:
I think UNION is not a problem, but using a SELECT in a FROM clause could be.
In any way, I've changed my code to
hi mike,
you can not use a whole object in a criteria, you'll have to use a
single attribute (ie. b.name).
hth
jakob
Michael Becke wrote:
Hello,
I am wondering what is the best way to handle Criteria.addEqualTo()
and Criteria.addIn() when the field contains an object referenced from
another
Hi,
your code attachement did not come through. Can you email me the classes on my
personal account and I'll integrate them.
-Original Message-
From: Chiah Tong Kiat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 11:15 PM
To: OJB Users List
Subject: code for start/stop inde
Hi,
I don't actually use DynamicProxies (I do use them elsewhere, just not in in
OJB), so I can't be much more help - but... The whole point of proxies is
that you *shouldn't* get to the real class. You should always talk to the
proxy, and the proxy talks to the real object. If you nead to expose
Joerg Lensing wrote:
hi charles,
ok, but how can I know do i get the real class? (instanceof doesn't
work.. don't know why9
e.g. if (pPartnerPO instanceof PersonIF) --> returns "true", but
should be false!!
sorry: should be
if (partnerIF instanceof PersonIF) {
joerg
hi charles,
ok, but how can I know do i get the real class? (instanceof doesn't
work.. don't know why9
e.g. if (pPartnerPO instanceof PersonIF) --> returns "true", but
should be false!!
joerg
Charles Anthony wrote:
In a word, Yes.
Cheers,
Charles.
-Original Message-
From
In a word, Yes.
Cheers,
Charles.
>-Original Message-
>From: Joerg Lensing [mailto:[EMAIL PROTECTED]
>Sent: 10 September 2003 11:15
>To: OJB Users List
>Subject: proxy question
>
>
>Hi all,
>do I have to reference all persistent (and mapped) objects by their
>interface if
>i want to use
Hello,
I am wondering what is the best way to handle Criteria.addEqualTo() and
Criteria.addIn() when the field contains an object referenced from
another table. For example.
I want to be able to query A objects using something like
criteria.addEqualsTo("b", ).
Hi all,
do I have to reference all persistent (and mapped) objects by their
interface if
i want to use proxies?
thanxs joerg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ok, I removed the hashCode too and OJB works well. But my hashCode was
based on my object's pk. Now I have some problems putting my objects in
a HashMap.
So what can I do now ? Is this a bug that will be corrected or is it a
known problem that will remain unchanged in the future ?
Seb
Christi
hi all,
when using dynamic proxies, do i allways have to use the the interface
to access the
objects? What do I have to change in the code to switch from
"real" classes to proxies?
joerg
-
To unsubscribe, e-mail: [EMAIL PROTECTE
I realized. The getBroker then getConnection is the way.
Thanks for tips from everyone.
Edson Richter
- Original Message -
From: Charles Anthony
To: 'OJB Users List'
Sent: Wednesday, September 10, 2003 3:35 AM
Subject: RE: How to use DUAL
Hi Edson,
You say you're wor
Hi Lasse!
You get several instances of PersistenseBroker. Each broker handles on
transaction at a time.
the broker have tre methods to handles transactions..
beginTransaction();
broker.commitTransaction();
broker.abortTransaction();
Regards
Roland Carlsson
- Original Message -
From:
Hey Tong Kiat,
Good to see you on this mailing list. Remember me? How are things at Silicomp? How
long have you been part of OJB?
Cheers
Sanjeet Joshi
- Original Message -
From: Chiah Tong Kiat
To: OJB Users List
Sent: Wednesday, September 10, 2003 2:14 PM
Subject: code for
Hello everybody,
how can I use several (concurrent) transactions using the PB-API.
With the ODMG-API I do something like
Transaction tx = odmg.newTransaction();
tx.begin();
...
Lasse
-
To unsubscribe, e-mail: [EMAIL PROTECTED
22 matches
Mail list logo