I have a similar solution in my job. I've done in the following way:
class A {
...
}
class A_normal extends A {
}
class A_history extends A {
}
Only A_normal and A_history are mapped in repository.xml.
So, if I need to manipulate the object, I use class A. To store a normal object, I use
and
Is this already in CVS? This fix is correct?
Thanks,
Edson Richter
After some research, I've found an implementation that works:
public void clear()
{
Collection coll;
if(getData()instanceof ManageableCollection) {
getData().clear(); // ECER: assure
Since yesterday (I've downloaded CVS HEAD sources and compiled), I can't get a
collection-descriptor using class=org...RemovalAwareList work correctly with
proxy=dynamic.
The stack trace is:
java.lang.ClassCastException
at
, but this is not occuring in older OJB releases...
Best regards,
Edson Richter
Since yesterday (I've downloaded CVS HEAD sources and compiled), I can't get a
collection-descriptor using class=org...RemovalAwareList work correctly with
proxy=dynamic.
The stack trace is:
java.lang.ClassCastException
= B.field5
I expect this help.
Edson Richter
Jakob Braeuchi wrote:
hi edson,
imo the whole handling of the multi-key criteria is a little bit weird.
what should the sql look like in your case ?
jakob
Edson Carlos Ericksson Richter wrote:
Hum... There is some instability here.
I don't
is indirection table, and has 5 fields.
select *
from A join B
on A.field1 = B.field1 and A.field2 = B.field2
join C
on C.field1 = B.field3 and C.field2 = B.field4 and C.field3 = B.field5
I expect this help.
Edson Richter
Jakob Braeuchi wrote:
hi edson,
imo the whole handling
Hmmm, what about the 1:0..1 and proxies test for null is always false and the
afterStore
not being called for collections? Are they fixed too?
Best regards,
Edson Richter
Dear all,
We've got a new release! Given we find no showstoppers during the next
week we will approach the Project
To see what exactly being going to/from database server, enable P6Spy.
I'm using p6spy with sqlprofiler tool, and I get exactly information passing between
OJB and
database server (not only sql commands, but including data sen't and returned).
Edson Richter
Hello,
I think I need to give you
is mandatory.
Edson Richter
Hi all,
Nope I didn't found any thing on the subject, I found this behaviour while
debugging ojb (
thank to eclipse ). And then reading comment in example bundled with ojb.
Same behaviour with all ( I played with ) layer ( odmg, PB ).
It's should
familiarized on ODMG could give you more orientation (or
confirm
is this solution works with ODMG too).
Best regards,
Edson Richter
Hi all,
I'm really lost with auto-delete feature...
The model:
0,n 0,n
Actors Roles
The RDBMS schema:
actors
.
Is this a expected behaviour, or is needed some kind of config I lost?
In meantime, I've created a trigger in database to do this job, so it isn't a real
problem,
but I think it's should be managed by OJB.
Thanks for any tips,
Edson Richter
,
Edson Richter
For the slow people in the class, can you please explain this problem in
a little more detail? If I have to tweak cache timeouts to get correct
behavior on simple references, then there 's a bug hiding in here somewhere.
Thanks.
Edson Carlos Ericksson Richter wrote:
Exists some
.
Best regards,
Edson Richter
- Original Message -
From: Muhammad Aamir
To: OJB Users List
Sent: Friday, January 09, 2004 9:38 AM
Subject: RE: FW: NetBeans and OJB
NetBeans IDE is a wonderful modular application and you can develop
your
own application on top
with this kind of facility, they wants more!).
jakob
Edson Richter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
);
Collection currentMtoNKeys = null;
if (col == null)
{
if (cds.isMtoNRelation())
{
deleteMtoNImplementor(cds, obj);
}
}
...
Edson Richter
Interesting is that this code is right (will only occur if cds.getCascadeStore()
returns true):
private void storeCollectionObject(CollectionDescriptor cds, Object otherObject)
{
// if cascade store: store associated object
if (cds.getCascadeStore())
{
affect the OJB behavior.
Thanks,
Edson Richter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
again,
Edson Richter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
,
Edson Richter
MGR Informática Ltda
Hi Fabiano,
Try JDBC-TYPE='TIMESTAMP' - and try and use java.sql.Date instead of
java.util.Date... I
have run into problems before with java.util.Date but YMMV.
Good Luck,
Rob :)
-Original Message-
From: Fabiano Fernandes de Souza [mailto
refresh=true
auto-retrieve=true
foreignkey field-id-ref=intActivityIdFk /
/reference-descriptor
/class-descriptor
Best regards,
Edson Richter
Thanks for your answer. When I change the reference name to I get a
MetadataException which
Are you working with DefaultCacheImpl or EmptyCacheImpl?
If you are working with DefaultCacheImpl, take a look at config parameters.
Otherwise, are there any exceptions (stack trace), messages (they can be very usefull
if you
enable higher level of logging as DEBUG).
Best regards,
Edson Richter
a try to
DTD
doc. Is the first place I look when in doubt.
Best regards,
Edson Richter
Thanks for your quick answer, I cheched the OJB.properties file an I
was using DefaultCacheImpl I change it to ObjectCacheEmptyImpl and now
it is working as I was expecting.
Now just to learn the reasons
on OJB (the fact it not check if all extents are declared),
and I
really don't know even if it's already fixed on latest sources.
Thanks,
Edson Richter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
23 matches
Mail list logo