I can use "SequenceManagerNativeImpl" or "SequenceManagerNextValImpl".
But, in my project, I need to use identiy column and sequence both. Because
some tables use the identity itself and some tables use sequence to maintain
unique no.
How can I configure OJB to got it?
--
hi roland,
you can also use a proxied reference.
i'd prefer using proxied collections and proxied references instead of
proxied classes.
the worst thing you can do is mixing both concepts :(
hth
jakob
Roland Carlsson wrote:
I just wanna add that you can use a collectionProxy. Read about it in t
I just wanna add that you can use a collectionProxy. Read about it in the
"Advanced O/R" on the homepage of ojb. It will only use one query to
materialize you collection of objects.
Regards
Roland Carlsson
- Original Message -
From: "Jakob Braeuchi" <[EMAIL PROTECTED]>
To: "OJB Users Lis
Hello:
When I try to build my repository using the build-torque.xml target
project-ojb-repository-classpath, I get several errors in the velocity
log:
2003-09-20 11:28:04,859 - Starting Jakarta Velocity v1.3.1
2003-09-20 11:28:04,859 - RuntimeInstance initializing.
2003-09-20 11:28:04,859 - Defau
hi joerg,
well this works as designed.
if the class in non proxied the select immediately materializes the
fetched rows.
if the class is proxied only the identities are built and wrapped by a
proxy. the first time you access a method of the proxy it materializes
the real object resulting in a s
If you are using a PersistenceBroker you can force an insert by using:
PersitenceBroker broker = null;
/* snip */
broker.store(myObject, ObjectModificationDefaultImpl.INSERT);
Well thats what I do and it seems to work.
Regards,
Joss
> try leaving the PK empty - I thnk that OJB work
Problem is that I need to explicitly set the id.
I'm defining the test data in and the relationships in an xml file.
For example:
I need to know the id's so that I can assign them. Otherwise, I could
try resetting the sequences, but that would make things a little more
messy, programatica
try leaving the PK empty - I thnk that OJB works out whether its a insert or
update by the presence of this field
There may be a way to force an insert but I can't remember it right now
Jin
- Original Message -
From: "Durham David Contr 805 CSPTS/SCBE" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Hi Dave,
Actually in should to either INSERT or UPDATE if the PK is set properly,
But if you inserted a row using OJB and deleted the record using JDBC
And trying to store using OJB again than it wil use UPDATE, not INSERT.
You should clear the cache before as it doesn't know about external
opera
I'm writing a routine that clears out a db and reloads a defined test
data set. I'm trying to insert new objects but sometimes, not always,
OJB will execute an update statement instead of an insert. I'm
explicitly setting the id pk's and bypassing the sequencemanager, so I
figure that has somethi
Folks,
I have this code that doesn't work correctly.
Trying to query all objects from database and receiving them always from
the broker's cache. So now I am cleaning the cache every time before query.
Can I do it in any other way so that I don't need to clear the whole cache
every time?
//-- THI
Currently there is only the documentation (in the same 'contrib' directory
as the module itself). However I could put together a first-steps
paragraph to said documentation, although this would take a couple of
days.
If you have any questions, you could mail to this list or to me directly
;-)
Tom
Hi All,
I compared the p6Spy-statements of proxied and non-proxied classes. The
class (userPO)
is 1) dynamic proxy and
2) no proxy
I queried this class directly (s.b)
Query query = new QueryByCriteria(UserPO.class, null);
Collection result = broker.getCollectionByQuery(query);
To all the people trying to work with JDO
please check this document:
http://access1.sun.com/jdo/
Best Regards,
Antonio Gallardo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
14 matches
Mail list logo