Hi,
I have a class file with an 'long id' autoincrementally. During
byte-code enhancement, I get the following error :
[java] Error while enhancing: JDO ENHANCER: At least one error
occurred while enhancing input class for Transparent Persistence;
detailed message(s): nested exception:
It should be ok.
The reset name seems fine to me.
Thanks,
Guillaume
-Message d'origine-
De : Armin Waibel [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 avril 2004 18:08
À : OJB Users List
Objet : Re: Problem with sequence manager
Guillaume Nodet wrote:
I only added the following
I already used it, just configure the right class in ojb.properties for the
key
ObjectCacheClass, then just configure your cache.ccf file for configuring
jcs.
Guillaume
-Message d'origine-
De : Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED]
Envoye : dimanche 25 avril 2004 21:25
thx for your answer Guiiaume. I already did this and use the example (basic)
cache.ccf file from the jcs homepage. But I am using JCS the first time and
there is no much docu available, so I am wondering how it all works. Is it
as easy as
broker.beginTransaction();
broker.insert(persistObject);
Hi Dirk,
you don't need to cache the objects by yourself it will be done by OJB.
If you want to manipulate the cache use the service method provided by PB:
PB.serviceObjectCache()
or to remove objects from the cache, yu can find methods at PB.
broker.beginTransaction();
You should not bother accessing direcly jcs.
The cache will be created by ojb and
you can retrieve objects using ojb
with a broker.getObjectByIdentity.
For the jcs cache implementation in the ojb distrib,
you're right that it should use a string as the key.
Personnally, i copied the given class
Hi Armin,
oh I see, great. This simplifies it for me. I have two more questions: If I
do not specify an expiration time of the cached object in cache.ccf, is
there a default 'remove objects from cache implementation which will be
invoked after a certain time? What about the memory shrinker
Hi Alexandre,
could you send the java class ?
wish version of the jdo enhancer do you use ?
Le 26 avr. 04, à 09:00, Alexandre BOISSEAU a écrit :
Hi,
I have a class file with an 'long id' autoincrementally. During
byte-code enhancement, I get the following error :
[java] Error while
Hi Nicolas,
I use the enhancer provided by jdori (com.sun.jdori.enhancer) and
db-ojb-1.0.rc6.
I don't know, because I have a similar class without problem during
enhancement and running.
Here my class file :
public final class CFile {
private long id; // primary-key, autoincrement
Hello,
we have a strange siuation where collections are *NOT* updated in the object cache
(org.apache.ojb.broker.cache.ObjectCacheDefaultImpl).
Situation:
Object A has many B (1 to n)
Object B has many C ( 1 to n)
A.getBs() - auto-delete=true
B.getCs() - auto-delete=true
We insert an A, many
You should ask to the mailing list of jcs for such questions.
mailto:[EMAIL PROTECTED]
Guillaume
-Message d'origine-
De : Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED]
Envoyé : lundi 26 avril 2004 12:06
À : 'OJB Users List'
Objet : AW: AW: Object Cache using
I've gotten around to the part of my application that needs to produce
reports on various things. Rather than hard-code reports, which would,
admittedly make my job more secure :-) , I'd like to be able to write a
definition of the report in XML, and have some parser take this and
produce the
I try your class and it work for me.
Just to now. Be careful if you want to use the OJB plugging for JDORI
because it doesn't work very well (or I don't now how to use it).
The 1..n and n..m relation have problem with the persistence by
reachability. When you get object with a query, reachable
Ok, I continue to search any solutions.
Which tool you use to enhance byte-code ? (other that JDORI).
I have a case of update that running good with 1..n relation. But I
didn't look further these tests.
Thanks,
Alexandre
Nicolas Arni-Bloch wrote:
I try your class and it work for me.
Just to
Nilesh, if you are still having difficulty, it is time to step through the
code with a debugger, like Eclipse. But first, you'll need to get the OJB
source code and compile it (at least
org/apache/ojb/broker/util/sequence/SequenceManagerNativeImpl) in your IDE.
This because rc5 and rc6 are not
A quick search of sourceforge finds:
OpenReports : http://sourceforge.net/projects/oreports/
JasperReports : http://sourceforge.net/projects/jasperreports/
JFreeReport : http://sourceforge.net/projects/jfreereport/
I think all 3 of these tools use an xml based syntax. I have played
around w/
How can I persist a HashMap object?
Do I have to store it with a JDBC type like BLOB or BINARY since
JAVA_OBJECT does not work with MySQL.
Cheers
Claude
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi
I use jasper Reports with OJB and it is easy to interface :
You make a customized datasource using collections extracts from Ojb.
I have also posted a barcode extension for jasper Reports
http://compiere-mfgscm.sourceforge.net/
You can use iReports to design reports for jasper Reports
I have
Hi,
I've got a question regarding the attribute auto-retrieve=true with a
collection descriptor. I'm using the OTM Api.
Here is my situation, i have two class of persistent objects :
CustomerGroup and Customer, the CustomerGroup has a collection that
contains all the customers in the group. If
Hi Keith,
We use Jasper Reports and iReport extensively. Jasper Reports generates
reports based on an XML definition. The data source could be JDBC or a
collection of Java Beans. To prepare a report, you can simply query the
records using OJB and pass the collection to Jasper Reports for
Hello,
I am using following code to update a record:
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
QueryByCriteria query = new QueryByCriteria(department);
DepartmentDto result = (DepartmentDto)
broker.getObjectByQuery(query);
if
Hi all,
how should I handle cases where my business objects could be either real objects or
proxies, and I want to override hashcode (because I've already overridden equals)?
Let's say that I'm using a proxy reference for an object A (i.e. not all As are
proxies by default), and I put some As
Hi there:
I'm a newbie trying to get started with OJB. I have created ojb-blank to
start a new project. However in this new project I have tried to set up
a simple application using the PersistenceBorkerFactory and also using
ODMG. With each I am getting an error complaining that the
JasperReports is an open source Java reporting tool. A report design is
represented by an XML file.
http://jasperreports.sourceforge.net/
Zhangling
-Original Message-
From: Keith Rogers [mailto:[EMAIL PROTECTED]
Sent: Monday, April 26, 2004 4:01 AM
To: [EMAIL PROTECTED]
Subject:
I have a simple n:m relation:
user *..* rol
I brake this with a middle table
user 1..* user_rol *..1 rol
Everything is fine, the problem is when a delete a rol from the rol
user's collection, the rol it self is deleted and I want to keep it.
Here es the code on user:
/** @ojb.collection
Hello,
I couldn't find my specific question in the archives, so I am posting it
here. Please CC any reply as I am not subscribed. I am using ojb-rc6
with a postgreSQL database.
I have an object hierarchy implemented which uses the
one-table-per-class approach along with join tables for
Hi there:
I'm a newbie trying to get started with OJB. I have created ojb-blank to
start a new project. However in this new project I have tried to set up
a simple application using the PersistenceBorkerFactory and also using
ODMG. With each I am getting an error complaining that the
27 matches
Mail list logo