hi,
i have done the change and all my records are in the database. But now i get
this error :
what does it mean?
thanks !
remi
org.apache.ojb.broker.util.sequence.SequenceManagerException:
java.lang.UnsupportedOperationException: This feature is not supported by
this implementation
at
which DB do you use?
the platform implementation class have to
override
public String getLastInsertIdentityQuery(String tableName)
{
// return the sql string to query last inserted Identity value
}
regards,
Armin
Rémi Bars wrote:
hi,
i have done the change and all my records are in the
i m using sybase
where can i find the platformù implementation?
- Original Message -
From: Armin Waibel [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 9:59 AM
Subject: Re: Identity
which DB do you use?
the platform implementation class have
Hi,
i have done an application using struts and OJB. my application runs well in
local machine. but OJB doesnt work, when running the same application in a server. i
havent changed anything for OJB in the server, should i? please help me to resolve
this issue.
Regards..
Anish..
org.apache.ojb.broker.platforms package
Armin
Rémi Bars wrote:
i m using sybase
where can i find the platformù implementation?
- Original Message -
From: Armin Waibel [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 9:59 AM
Subject: Re:
ok i see nothing about this method in PlatformSybaseASEImpl.java..
- Original Message -
From: Armin Waibel [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 9:59 AM
Subject: Re: Identity
which DB do you use?
the platform implementation
Hi,
i am using mysql4 in an application which use OJB. what details should i change in
jdbc-connection-descriptor
platform=MySQL
jdbc-level=2.0
driver=org.gjt.mm.mysql.Driver
protocol=jdbc
subprotocol=mysql
dbalias=dburl
/jdbc-connection-descriptor
please help me.
Regadrs..
Anish..
What is the problem?
Hi,
i am using mysql4 in an application which use OJB. what details should i
change in
jdbc-connection-descriptor
platform=MySQL
jdbc-level=2.0
driver=org.gjt.mm.mysql.Driver
protocol=jdbc
subprotocol=mysql
dbalias=dburl
/jdbc-connection-descriptor
Hallo,
I want to write a little demo programm using the JDO API for
persistence. But I have problems to get the import for OjbStorePMF().
Which files do I have to include to my webproject to be able to use the
JDO API.
Thanks,
Stephan
Hi again,
It was my problem, not OJB's. My mapping file and Java classes had
gotten out of sync (OJB mapping tools are looking very promising now,
perhaps it's time to stop manual synchronization...). Garbage
collection is now keeping memory use stable. In the past, I had worked
around
Anish, we really need more information than this.
What type of container are you running it in on the server? What type
of container are you running it in locally? (Servlet, EJB, simple jvm,
etc).
What error messages do you get?
-Brian
On Friday, November 28, 2003, at 06:09 AM, Anish wrote:
On Thursday, November 27, 2003, at 07:34 AM, Phil Warrick wrote:
-the profiler OptimizeIt is very useful for memory leak investigation
once learned. Very important to create a minimal test program
otherwise the data explosion makes it difficult to isolate problem
references.
I haven't used
Hi,
I have a really weird problem and I don't if I am doing something wrong or
if this is a bug of OJB.
I have basically 2 classes: Person and Department. I defined a N:M relation
between those two.
Now I want to remove a Department from a Person. But what happens is, that
OJB is trying to
autodelete flag in your xml mapping file is true or false?
an example:
...
reference-descriptor name=country class-ref=allibo.logistic.Country
auto-retrieve=true auto-update=true auto-delete=true
...
Hi,
I have a really weird problem and I don't if I am doing something wrong or
if this is a
Always the same question, I ask it few days ago !
First you need to configure your repository (with auto-delete=false), i
think you've already do this.
Then use the ManagedArrayList as a collection class (by default it's a
RemovalAwareCollection)
like this (as an a attribute of the collection
Hi,
I've got a 1:n mapping from table A to table B. But the foreign key field of
table A is not it's primary key. I can't find how to tell OJB to use another
field to join table B.
Thanks for help, Norbert.
-
To unsubscribe,
hi,
i have try to put this in my code
public String getLastInsertIdentityQuery(String tableName)
{
return select @@identity; (i need wait for an upgrade on sybase
and test select last_insert_id() )
}
it works fine for the first record when i try to insert a second record i
get
Hi,
I think this is a bug in SequenceManagerNativeImpl.
This should be fixed with current CVS.
A workaround for rc4 could be a replacement of
protected long getUniqueLong(FieldDescriptor field) throws
SequenceManagerException
{
return -1;
}
with
private long tempKey = -1;
protected long
ok thanks it works fine now
Remi
- Original Message -
From: Armin Waibel [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 5:31 PM
Subject: Re: Identity
Hi,
I think this is a bug in SequenceManagerNativeImpl.
This should be fixed with current
Thanks, I defined it like that, but:
If A is 1 and B is n.
In A class descriptor write :
collection-descriptor name=relation_name_in_A_class
element-class-ref=url.B
inverse-foreignkey field-ref=mykey/
/collection-descriptor
And in B class descriptor write this
field-descriptor
Can i programatic rollback managed transaction in ODMG api?
I have the following challenge.
1. ((NarrowTransaction)tx).markDirty(document1);
2. ((NarrowTransaction)tx).markDirty(subDoc1);
3. ((NarrowTransaction)tx).markDelete(subDoc2);
In the above sequence, says I excute statement 1 and 2
Hello all,
In the tutorial about dynamic proxies, it has been written that we dont
have to implement proxy class for each class. Also, in the top of the
page, it is written that Dynamic proxies provided by OJB. They can
simply be activated by setting certain switches in repository.xml. This
is
I'm upgrading my application from ojb-1.0.rc1 to .rc4.
I've replaced old ojb jar and all needed library with new release's jar.
I've replaced old ojb.properties with new standard ojb.properties.
I haven't replaced my repository.xml.
The following code is my PersistenceBroker instantiation
import
Hi,
the autodelte flag is set to false. Here is my complete collectin-descriptor
!-- N:M - Relation Company-Person --
collection-descriptor
name=persons
element-class-ref=kos.intranet2.om.Person
auto-retrieve=true
auto-update=true
auto-delete=false
proxy=true
Hi,
thanks - I think that was the solution. But I don't think that it was
intended by the developers of OJB that
OJB deletes instances by default, or was it?
Tino
- Original Message -
From: Philippe Boisaubert [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.ojb.user
Sent: Thursday,
25 matches
Mail list logo