<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>jdo-user@db.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/db-jdo-user/</id>
<updated>2009-12-06T09:26:00Z</updated>
<entry>
<title>Re: Query by Criteria</title>
<author><name>Kevin Roll &lt;kroll@appropel.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200907.mbox/%3c665440AE-B267-4358-BA5D-715ECDD4703F@appropel.com%3e"/>
<id>urn:uuid:%3c665440AE-B267-4358-BA5D-715ECDD4703F@appropel-com%3e</id>
<updated>2009-07-01T16:51:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Jul 1, 2009, at 12:22 PM, Andy Jefferson wrote:

&gt;&gt; QueryDSL already does that for JDOQL
&gt; http://source.mysema.com/display/querydsl/Querydsl

Thanks for the pointer, Andy. QueryDSL looks cool but I'm not certain  
it's exactly what I'm looking for. In fact, their type-safe objects  
may be too extreme for my purposes.

My general use case is that I present a GUI to the user with a large  
number of potential search criteria. When they hit the search criteria  
I want to build a query based upon what they have entered/selected.  
This query may involve complex nesting of ands and ors, which is one  
of the main problems I am trying to solve. I have hacked together  
something that generally works and is able to translate into a JDOQL  
query, but I was hoping that better minds had looked at the issue.  
Usually I am building the query on the fly - I rarely do preassembled  
queries based upon a specific query class.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Query by Criteria</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200907.mbox/%3c200907011722.24679.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200907011722-24679-andy@datanucleus-org%3e</id>
<updated>2009-07-01T16:22:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Are there any plans to add Query by Criteria to the JDO standard? I'm
&gt; referring to a programmatic API to build queries, similar to what
&gt; Hibernate already has and JPA is planning to add.
&gt;
&gt; If not, does anyone know of another route to achieving this
&gt; functionality? Are there any libraries that can be layered over JDO to
&gt; get this? Should I write my own?

QueryDSL already does that for JDOQL
http://source.mysema.com/display/querydsl/Querydsl
I'm sure the guys who wrote it would love to hear feedback ;-)

-- 
Andy
DataNucleus (http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>Query by Criteria</title>
<author><name>Kevin Roll &lt;kroll@appropel.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200907.mbox/%3c38BF5EA6-ED63-4DBD-A75F-5EE15200ADEE@appropel.com%3e"/>
<id>urn:uuid:%3c38BF5EA6-ED63-4DBD-A75F-5EE15200ADEE@appropel-com%3e</id>
<updated>2009-07-01T16:10:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Are there any plans to add Query by Criteria to the JDO standard? I'm  
referring to a programmatic API to build queries, similar to what  
Hibernate already has and JPA is planning to add.

If not, does anyone know of another route to achieving this  
functionality? Are there any libraries that can be layered over JDO to  
get this? Should I write my own?

Thanks for any insight.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Persisting object and foreign keys</title>
<author><name>LFS &lt;lfs83mail-apachejdo@yahoo.com.br&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200906.mbox/%3c51424.69002.qm@web51910.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c51424-69002-qm@web51910-mail-re2-yahoo-com%3e</id>
<updated>2009-06-30T11:23:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I have thought of this, but it sounded like an awful memory waste... it can rise to very high
memory consumption, just to keep this data around, like in the user session.
I also thought of using getObjectById to get the city object before persisting the address,
but that is another query hitting the DB (cache may help, but does not solve it).

Neither of these solutions sound nice... this is some pretty trivial operation, and there
should be a better solution for it. How can I do it? Could database identity help it somehow?

Thanks again!

--- Em seg, 29/6/09, Craig L Russell &lt;Craig.Russell@Sun.COM&gt; escreveu:

De: Craig L Russell &lt;Craig.Russell@Sun.COM&gt;
Assunto: Re: Persisting object and foreign keys
Para: jdo-user@db.apache.org
Data: Segunda-feira, 29 de Junho de 2009, 18:43

Hi,

If the combo box is populated from the database, perhaps you could keep a detached City object
around (as a value of a Map corresponding to the name of the city as the key) and when the
new Address instance is created, use the detached City instance as the value of the City field
in the new Address instance. When you do makePersistent on the Address, the detached City
instance will be reconnected to the database.

Craig

On Jun 29, 2009, at 12:54 PM, LFS wrote:

&gt; Hi
&gt; 
&gt; This is my situation: I have an Address object that I
&gt; persist/retrieve from the DB. It contains a City object, reperesenting
&gt; the city on which that address is. City contains State, and State
&gt; contains Country object (a long N-1 chain).
&gt; When I'm creating a new
&gt; address from user input, the user selected its city from a combo box
&gt; which I populated from DB, then I'll have the city's ID.
&gt; When I try
&gt; to persist the new address, the most I can do is put a City object on
&gt; it, containing only the city ID. The problem is that persisting this
&gt; will erase the City record for that ID on the DB, because other fields
&gt; like Name and State will be null. I want simply to set the foreign id
&gt; on the Address object, nothing else.
&gt; 
&gt; I believe there is some
&gt; good solution for this... my intention is not updating the City object,
&gt; and retrieving it to put it back on the address object before being
&gt; persisted sounds very strange and a performance nightmare.
&gt; 
&gt; What's the proper way to do this?
&gt; 
&gt; Thanks!
&gt; 
&gt; Note: I'm using application identity and DataNucleus JDO.
&gt; 
&gt; 
&gt;      ____________________________________________________________________________________
&gt; Veja quais são os assuntos do momento no Yahoo! +Buscados
&gt; http://br.maisbuscados.yahoo.com

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!




      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Persisting object and foreign keys</title>
<author><name>Craig L Russell &lt;Craig.Russell@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200906.mbox/%3c78208B96-095B-4451-9D37-73BD16AB2681@SUN.com%3e"/>
<id>urn:uuid:%3c78208B96-095B-4451-9D37-73BD16AB2681@SUN-com%3e</id>
<updated>2009-06-29T21:43:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

If the combo box is populated from the database, perhaps you could  
keep a detached City object around (as a value of a Map corresponding  
to the name of the city as the key) and when the new Address instance  
is created, use the detached City instance as the value of the City  
field in the new Address instance. When you do makePersistent on the  
Address, the detached City instance will be reconnected to the database.

Craig

On Jun 29, 2009, at 12:54 PM, LFS wrote:

&gt; Hi
&gt;
&gt; This is my situation: I have an Address object that I
&gt; persist/retrieve from the DB. It contains a City object, reperesenting
&gt; the city on which that address is. City contains State, and State
&gt; contains Country object (a long N-1 chain).
&gt; When I'm creating a new
&gt; address from user input, the user selected its city from a combo box
&gt; which I populated from DB, then I'll have the city's ID.
&gt; When I try
&gt; to persist the new address, the most I can do is put a City object on
&gt; it, containing only the city ID. The problem is that persisting this
&gt; will erase the City record for that ID on the DB, because other fields
&gt; like Name and State will be null. I want simply to set the foreign id
&gt; on the Address object, nothing else.
&gt;
&gt; I believe there is some
&gt; good solution for this... my intention is not updating the City  
&gt; object,
&gt; and retrieving it to put it back on the address object before being
&gt; persisted sounds very strange and a performance nightmare.
&gt;
&gt; What's the proper way to do this?
&gt;
&gt; Thanks!
&gt;
&gt; Note: I'm using application identity and DataNucleus JDO.
&gt;
&gt;
&gt;       
&gt; ____________________________________________________________________________________
&gt; Veja quais são os assuntos do momento no Yahoo! +Buscados
&gt; http://br.maisbuscados.yahoo.com

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!



</pre>
</div>
</content>
</entry>
<entry>
<title>Persisting object and foreign keys</title>
<author><name>LFS &lt;lfs83mail-apachejdo@yahoo.com.br&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200906.mbox/%3c888447.26328.qm@web51910.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c888447-26328-qm@web51910-mail-re2-yahoo-com%3e</id>
<updated>2009-06-29T19:54:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

This is my situation: I have an Address object that I
persist/retrieve from the DB. It contains a City object, reperesenting
the city on which that address is. City contains State, and State
contains Country object (a long N-1 chain).
When I'm creating a new
address from user input, the user selected its city from a combo box
which I populated from DB, then I'll have the city's ID.
When I try
to persist the new address, the most I can do is put a City object on
it, containing only the city ID. The problem is that persisting this
will erase the City record for that ID on the DB, because other fields
like Name and State will be null. I want simply to set the foreign id
on the Address object, nothing else.

I believe there is some
good solution for this... my intention is not updating the City object,
and retrieving it to put it back on the address object before being
persisted sounds very strange and a performance nightmare.

What's the proper way to do this?

Thanks!

Note: I'm using application identity and DataNucleus JDO.


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JSecurity + Transaction proxying</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200906.mbox/%3c200906230828.40050.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200906230828-40050-andy@datanucleus-org%3e</id>
<updated>2009-06-23T07:28:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I'm developing a web app, and I'm facing issues with double-proxying... or
&gt; so I discovered. My app uses Datanucleus JDO for persistence, and AOP for
&gt; transacion definition on business methods. When I included JSecurity code

Hi,

You've decided to hand off transaction allocation to Spring, hence Spring will 
handle that. I would have thought that the Spring forums would be a great 
place to seek help. DataNucleus doesn't seem to be referenced at all, neither 
in configuration, nor in stack traces, hence nothing I can add.


-- 
Andy Jefferson
DataNucleus (http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>JSecurity + Transaction proxying</title>
<author><name>LFS &lt;lfs83mail-apachejdo@yahoo.com.br&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200906.mbox/%3c630047.68303.qm@web51909.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c630047-68303-qm@web51909-mail-re2-yahoo-com%3e</id>
<updated>2009-06-22T21:26:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

I'm developing a web app, and I'm facing issues with double-proxying... or so I discovered.
My app uses Datanucleus JDO for persistence, and AOP for transacion definition on business
methods. When I included JSecurity code (I use version 0.9, waiting for Shiro 1.0) from the
sample Spring application (my container is Spring 2.5, and JBoss AS 4.2), my DI of business
beans into other beans no longer worked (trace snippet):

org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy61 implementing org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,net.sf.cglib.proxy.Factory]
to required type [MYPACKAGE.business.MyBean] for property 'myBean';

Some old post somewhere said about double-proxying, and then I figured it must be the reason,
because of this JSecurity configuration I included: 

&lt;!-- Enable JSecurity Annotations for Spring-configured beans.  Only run after
         the lifecycleBeanProcessor has run: --&gt;
&lt;bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"
depends-on="lifecycleBeanPostProcessor" /&gt;

I intend to use JSecurity annotation extensively to define security on the business and DAO
layers, but also need definition of transactions for business layer, hopefully through AOP.
How can I solve this conflict?

If helpful, this is my spring metadata for transacion AOP (not quite correct, read-only does
not work, still working on it):

&lt;!-- the transactional advice (what 'happens'; see the &lt;aop:advisor/&gt; bean below)
--&gt;
  &lt;tx:advice id="txAdvice" transaction-manager="txManager"&gt;
  &lt;!-- the transactional semantics... --&gt;
  &lt;tx:attributes&gt;
            &lt;tx:method name="store*"/&gt;
            &lt;tx:method name="update*"/&gt;
            &lt;tx:method name="delete*"/&gt;
            &lt;tx:method name="*"  read-only="true"/&gt;
  &lt;/tx:attributes&gt;
  &lt;/tx:advice&gt;
  
  &lt;!-- ensure that the above transactional advice runs for any execution
    of an operation defined by the FooService interface --&gt;
  &lt;aop:config proxy-target-class="true"&gt;
  &lt;aop:pointcut id="defaultServiceOperation" expression="execution(* MYPACKAGE.business..*Bean.*(..))"/&gt;
  &lt;aop:advisor advice-ref="txAdvice" pointcut-ref="defaultServiceOperation"/&gt;
  &lt;/aop:config&gt;

Many thanks!



      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PersistenceManagerFactory configuration for flat-file database</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200905.mbox/%3c200905201507.02772.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200905201507-02772-andy@datanucleus-org%3e</id>
<updated>2009-05-20T14:07:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I will look at DataNucleus to see if it supports plain simple flat-file DB.

I dunno what is "simple flat file DB", and don't really like the idea of 
inventing our own DB (there must be enough DB's around already :-) ), so if 
we reuse existing ones there are, at least,
* HSQLDB option that David already mentioned,
* ODF (the ISO document format used by OpenOffice/KOffice) which is basically 
XML so is user-editable. 
* XML itself
* JSON - also user-editable

These options are all supported by DataNucleus


-- 
Andy  (DataNucleus - http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PersistenceManagerFactory configuration for flat-file database</title>
<author><name>David Ezzio &lt;david@ezzio.us&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200905.mbox/%3c4A1353A4.9030108@ezzio.us%3e"/>
<id>urn:uuid:%3c4A1353A4-9030108@ezzio-us%3e</id>
<updated>2009-05-20T00:49:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ozvena,

I think you'll find that HSQL also store it data in human readable 
format for some table types.  If that satisfies your needs, then 
DataNucleus will definitely do the job for you as I believe it supports 
HSQL.

Cheers,

David

ozvena@gmail.com wrote:
&gt; Hi Matthew,
&gt; 
&gt; I am not using any flat-file DB. It is a new application I am developing.
&gt; The size of the database can range from few entries to few dozen of entries.
&gt; Each entry represents 3 strings. I want flat-file DB as it is user readable
&gt; and can be changed/edited by hand if needed.
&gt; 
&gt; I will look at DataNucleus to see if it supports plain simple flat-file DB.
&gt; 
&gt; Thank you!
&gt; Ozvena
&gt; 
&gt; 
&gt; 
&gt; On Tue, May 19, 2009 at 5:04 PM, Matthew Adams &lt;matthew@matthewadams.me&gt;wrote:
&gt; 
&gt;&gt; Hi ozvena,
&gt;&gt;
&gt;&gt; In order for you to use a flat-file database, you need to find a JDO
&gt;&gt; vendor that supports one.  First off, what kind of flat-file database
&gt;&gt; are you using?  I imagine a likely JDO candidate is DataNucleus, the
&gt;&gt; JDO reference implementation.  If it doesn't support whatever you're
&gt;&gt; using for a flat-file database, you can write a plug-in to support it.
&gt;&gt;  I haven't dug deeply, but you might consider DataNucleus over db4o.
&gt;&gt;
&gt;&gt; HTH,
&gt;&gt; Matthew
&gt;&gt;
&gt;&gt; On Tue, May 19, 2009 at 2:34 PM, ozvena@gmail.com &lt;ozvena@gmail.com&gt;
&gt;&gt; wrote:
&gt;&gt;&gt; Hello,
&gt;&gt;&gt;
&gt;&gt;&gt; I can't find any information about how to configure
&gt;&gt;&gt; PersistenceManagerFactory for flat-file database.
&gt;&gt;&gt;
&gt;&gt;&gt; Your help is appreciated!
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; mailto:matthew@matthewadams.me
&gt;&gt; skype:matthewadams12
&gt;&gt; yahoo:matthewadams
&gt;&gt; aol:matthewadams12
&gt;&gt; google-talk:matthewadams12@gmail.com&lt;google-talk%3Amatthewadams12@gmail.com&gt;
&gt;&gt; msn:matthew@matthewadams.me
&gt;&gt; http://matthewadams.me
&gt;&gt; http://www.linkedin.com/in/matthewadams
&gt;&gt;
&gt; 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PersistenceManagerFactory configuration for flat-file database</title>
<author><name>&quot;ozvena@gmail.com&quot; &lt;ozvena@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200905.mbox/%3c48efcebe0905191547h60ff4aabscac7359762d5c703@mail.gmail.com%3e"/>
<id>urn:uuid:%3c48efcebe0905191547h60ff4aabscac7359762d5c703@mail-gmail-com%3e</id>
<updated>2009-05-19T22:47:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Matthew,

I am not using any flat-file DB. It is a new application I am developing.
The size of the database can range from few entries to few dozen of entries.
Each entry represents 3 strings. I want flat-file DB as it is user readable
and can be changed/edited by hand if needed.

I will look at DataNucleus to see if it supports plain simple flat-file DB.

Thank you!
Ozvena



On Tue, May 19, 2009 at 5:04 PM, Matthew Adams &lt;matthew@matthewadams.me&gt;wrote:

&gt; Hi ozvena,
&gt;
&gt; In order for you to use a flat-file database, you need to find a JDO
&gt; vendor that supports one.  First off, what kind of flat-file database
&gt; are you using?  I imagine a likely JDO candidate is DataNucleus, the
&gt; JDO reference implementation.  If it doesn't support whatever you're
&gt; using for a flat-file database, you can write a plug-in to support it.
&gt;  I haven't dug deeply, but you might consider DataNucleus over db4o.
&gt;
&gt; HTH,
&gt; Matthew
&gt;
&gt; On Tue, May 19, 2009 at 2:34 PM, ozvena@gmail.com &lt;ozvena@gmail.com&gt;
&gt; wrote:
&gt; &gt; Hello,
&gt; &gt;
&gt; &gt; I can't find any information about how to configure
&gt; &gt; PersistenceManagerFactory for flat-file database.
&gt; &gt;
&gt; &gt; Your help is appreciated!
&gt; &gt;
&gt;
&gt;
&gt;
&gt; --
&gt; mailto:matthew@matthewadams.me
&gt; skype:matthewadams12
&gt; yahoo:matthewadams
&gt; aol:matthewadams12
&gt; google-talk:matthewadams12@gmail.com&lt;google-talk%3Amatthewadams12@gmail.com&gt;
&gt; msn:matthew@matthewadams.me
&gt; http://matthewadams.me
&gt; http://www.linkedin.com/in/matthewadams
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PersistenceManagerFactory configuration for flat-file database</title>
<author><name>Matthew Adams &lt;matthew@matthewadams.me&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200905.mbox/%3c1ba389ce0905191504j3c5e82ccn5a62847a5bdf8997@mail.gmail.com%3e"/>
<id>urn:uuid:%3c1ba389ce0905191504j3c5e82ccn5a62847a5bdf8997@mail-gmail-com%3e</id>
<updated>2009-05-19T22:04:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi ozvena,

In order for you to use a flat-file database, you need to find a JDO
vendor that supports one.  First off, what kind of flat-file database
are you using?  I imagine a likely JDO candidate is DataNucleus, the
JDO reference implementation.  If it doesn't support whatever you're
using for a flat-file database, you can write a plug-in to support it.
 I haven't dug deeply, but you might consider DataNucleus over db4o.

HTH,
Matthew

On Tue, May 19, 2009 at 2:34 PM, ozvena@gmail.com &lt;ozvena@gmail.com&gt; wrote:
&gt; Hello,
&gt;
&gt; I can't find any information about how to configure
&gt; PersistenceManagerFactory for flat-file database.
&gt;
&gt; Your help is appreciated!
&gt;



-- 
mailto:matthew@matthewadams.me
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthewadams12@gmail.com
msn:matthew@matthewadams.me
http://matthewadams.me
http://www.linkedin.com/in/matthewadams


</pre>
</div>
</content>
</entry>
<entry>
<title>PersistenceManagerFactory configuration for flat-file database</title>
<author><name>&quot;ozvena@gmail.com&quot; &lt;ozvena@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200905.mbox/%3c48efcebe0905191434j628730bbra79a72af695d03d7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c48efcebe0905191434j628730bbra79a72af695d03d7@mail-gmail-com%3e</id>
<updated>2009-05-19T21:34:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

I can't find any information about how to configure
PersistenceManagerFactory for flat-file database.

Your help is appreciated!


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Strange problem: timeout first time, then ok</title>
<author><name>jamh &lt;jam@bccampus.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200812.mbox/%3c20983445.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c20983445-post@talk-nabble-com%3e</id>
<updated>2008-12-12T20:50:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Thank you, issue is solved.  SQLserver's mirroring was responsible for the
behavior.


Craig L Russell wrote:
&gt; 
&gt; Hi,
&gt; 
&gt; This is probably the wrong forum for this issue. You might try the  
&gt; datanucleus forum at http://www.jpox.org/servlet/forum/index
&gt; 
&gt; Regards,
&gt; 
&gt; Craig
&gt; 
&gt; On Dec 9, 2008, at 12:11 PM, jamh wrote:
&gt; 
&gt;&gt;
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; I am running into something quite odd, and wanted to see if anyone  
&gt;&gt; could
&gt;&gt; shed light on this.  I have defined two persistence beans as:
&gt;&gt;
&gt;&gt; &lt;spring:bean id="certPersistFactory" scope="singleton"
&gt;&gt; class 
&gt;&gt; ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
&gt;&gt;          &lt;spring:property name="jdoProperties"&gt;
&gt;&gt;            &lt;spring:props&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key 
&gt;&gt; = 
&gt;&gt; "javax 
&gt;&gt; .jdo 
&gt;&gt; .PersistenceManagerFactoryClass 
&gt;&gt; "&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&gt;&gt; &lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver:// 
&gt;&gt; 1.2.3.4:1433;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionUserName"&gt;user1&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionPassword"&gt;passwd1&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key 
&gt;&gt; = 
&gt;&gt; "javax 
&gt;&gt; .jdo 
&gt;&gt; .option 
&gt;&gt; .ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&gt;&gt; &lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
&gt;&gt;            &lt;/spring:props&gt;
&gt;&gt;          &lt;/spring:property&gt;
&gt;&gt;        &lt;/spring:bean&gt;
&gt;&gt;
&gt;&gt; &lt;spring:bean id="prodPersistFactory" scope="singleton"
&gt;&gt; class 
&gt;&gt; ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
&gt;&gt;          &lt;spring:property name="jdoProperties"&gt;
&gt;&gt;            &lt;spring:props&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key 
&gt;&gt; = 
&gt;&gt; "javax 
&gt;&gt; .jdo 
&gt;&gt; .PersistenceManagerFactoryClass 
&gt;&gt; "&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&gt;&gt; &lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver:// 
&gt;&gt; 1.2.3.4:9546;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionUserName"&gt;user2&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.ConnectionPassword"&gt;passwd2&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key 
&gt;&gt; = 
&gt;&gt; "javax 
&gt;&gt; .jdo 
&gt;&gt; .option 
&gt;&gt; .ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&gt;&gt; &lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
&gt;&gt;                &lt;spring:prop
&gt;&gt; key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
&gt;&gt;            &lt;/spring:props&gt;
&gt;&gt;          &lt;/spring:property&gt;
&gt;&gt;        &lt;/spring:bean&gt;
&gt;&gt;
&gt;&gt; So the first strange thing is that if I reverse their order, ie. if  
&gt;&gt; I have
&gt;&gt; the prod bean precede the cert bean, the app won't start, ie. it  
&gt;&gt; gives me a
&gt;&gt; socket error.
&gt;&gt;
&gt;&gt; The second strange thing is that with the above, all operations to  
&gt;&gt; the cert
&gt;&gt; bean work flawlessly, but operations to the prod bean give me a  
&gt;&gt; timeout the
&gt;&gt; first time, but then after that, they work ever after.
&gt;&gt;
&gt;&gt; If I restart the app, again the first operation on the prod bean  
&gt;&gt; times out,
&gt;&gt; and after that it works.
&gt;&gt;
&gt;&gt; PS: if I have two beans that both run on the same port but different  
&gt;&gt; hosts,
&gt;&gt; everything works fine.  The two databases are set up identically.
&gt;&gt;
&gt;&gt; What is going on?
&gt;&gt; Any help is appreciated.
&gt;&gt; -- 
&gt;&gt; View this message in context:
&gt;&gt; http://www.nabble.com/Strange-problem%3A-timeout-first-time%2C-then-ok-tp20922247p20922247.html
&gt;&gt; Sent from the JDO - Development mailing list archive at Nabble.com.
&gt;&gt;
&gt; 
&gt; Craig L Russell
&gt; Architect, Sun Java Enterprise System http://db.apache.org/jdo
&gt; 408 276-5638 mailto:Craig.Russell@sun.com
&gt; P.S. A good JDO? O, Gasp!
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Re%3A-Strange-problem%3A-timeout-first-time%2C-then-ok-tp20980900p20983445.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Strange timeout problem</title>
<author><name>jamh &lt;jam@bccampus.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200812.mbox/%3c20983415.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c20983415-post@talk-nabble-com%3e</id>
<updated>2008-12-12T20:48:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>



jamh wrote:
&gt; 
&gt; Hello,
&gt; 
&gt; I am running into something quite odd, and wanted to see if anyone could
&gt; shed light on this.  I have defined two persistence beans as:
&gt; [...]
&gt; 
&gt; 

Issue solved.  Sqlserver's mirroring setup was responsible for the strange
behavior.

-- 
View this message in context: http://www.nabble.com/Strange-timeout-problem-tp20923897p20983415.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Strange problem: timeout first time, then ok</title>
<author><name>Craig L Russell &lt;Craig.Russell@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200812.mbox/%3c52C6C5F2-AD0E-4057-A0B8-6AFA53A1E4E6@SUN.com%3e"/>
<id>urn:uuid:%3c52C6C5F2-AD0E-4057-A0B8-6AFA53A1E4E6@SUN-com%3e</id>
<updated>2008-12-12T18:19:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

This is probably the wrong forum for this issue. You might try the  
datanucleus forum at http://www.jpox.org/servlet/forum/index

Regards,

Craig

On Dec 9, 2008, at 12:11 PM, jamh wrote:

&gt;
&gt; Hello,
&gt;
&gt; I am running into something quite odd, and wanted to see if anyone  
&gt; could
&gt; shed light on this.  I have defined two persistence beans as:
&gt;
&gt; &lt;spring:bean id="certPersistFactory" scope="singleton"
&gt; class 
&gt; ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
&gt;          &lt;spring:property name="jdoProperties"&gt;
&gt;            &lt;spring:props&gt;
&gt;                &lt;spring:prop
&gt; key 
&gt; = 
&gt; "javax 
&gt; .jdo 
&gt; .PersistenceManagerFactoryClass 
&gt; "&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&gt; &lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver:// 
&gt; 1.2.3.4:1433;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionUserName"&gt;user1&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionPassword"&gt;passwd1&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key 
&gt; = 
&gt; "javax 
&gt; .jdo 
&gt; .option 
&gt; .ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&gt; &lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
&gt;            &lt;/spring:props&gt;
&gt;          &lt;/spring:property&gt;
&gt;        &lt;/spring:bean&gt;
&gt;
&gt; &lt;spring:bean id="prodPersistFactory" scope="singleton"
&gt; class 
&gt; ="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
&gt;          &lt;spring:property name="jdoProperties"&gt;
&gt;            &lt;spring:props&gt;
&gt;                &lt;spring:prop
&gt; key 
&gt; = 
&gt; "javax 
&gt; .jdo 
&gt; .PersistenceManagerFactoryClass 
&gt; "&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&gt; &lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver:// 
&gt; 1.2.3.4:9546;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionUserName"&gt;user2&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.ConnectionPassword"&gt;passwd2&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key 
&gt; = 
&gt; "javax 
&gt; .jdo 
&gt; .option 
&gt; .ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&gt; &lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
&gt;                &lt;spring:prop
&gt; key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
&gt;            &lt;/spring:props&gt;
&gt;          &lt;/spring:property&gt;
&gt;        &lt;/spring:bean&gt;
&gt;
&gt; So the first strange thing is that if I reverse their order, ie. if  
&gt; I have
&gt; the prod bean precede the cert bean, the app won't start, ie. it  
&gt; gives me a
&gt; socket error.
&gt;
&gt; The second strange thing is that with the above, all operations to  
&gt; the cert
&gt; bean work flawlessly, but operations to the prod bean give me a  
&gt; timeout the
&gt; first time, but then after that, they work ever after.
&gt;
&gt; If I restart the app, again the first operation on the prod bean  
&gt; times out,
&gt; and after that it works.
&gt;
&gt; PS: if I have two beans that both run on the same port but different  
&gt; hosts,
&gt; everything works fine.  The two databases are set up identically.
&gt;
&gt; What is going on?
&gt; Any help is appreciated.
&gt; -- 
&gt; View this message in context: http://www.nabble.com/Strange-problem%3A-timeout-first-time%2C-then-ok-tp20922247p20922247.html
&gt; Sent from the JDO - Development mailing list archive at Nabble.com.
&gt;

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!



</pre>
</div>
</content>
</entry>
<entry>
<title>Strange timeout problem</title>
<author><name>jamh &lt;jam@bccampus.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200812.mbox/%3c20923897.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c20923897-post@talk-nabble-com%3e</id>
<updated>2008-12-09T21:21:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello,

I am running into something quite odd, and wanted to see if anyone could
shed light on this.  I have defined two persistence beans as:

&lt;spring:bean id="certPersistFactory" scope="singleton"
class="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
          &lt;spring:property name="jdoProperties"&gt;
            &lt;spring:props&gt;
                &lt;spring:prop
key="javax.jdo.PersistenceManagerFactoryClass"&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver://1.2.3.4:1433;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionUserName"&gt;user1&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionPassword"&gt;passwd1&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
            &lt;/spring:props&gt;
          &lt;/spring:property&gt;
        &lt;/spring:bean&gt;

&lt;spring:bean id="prodPersistFactory" scope="singleton"
class="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean"&gt;
          &lt;spring:property name="jdoProperties"&gt;
            &lt;spring:props&gt;
                &lt;spring:prop
key="javax.jdo.PersistenceManagerFactoryClass"&gt;org.jpox.jdo.JDOPersistenceManagerFactory
&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionURL"&gt;jdbc:sqlserver://1.2.3.4:9546;DatabaseName=dbcert;SelectMethod=cursor&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionUserName"&gt;user2&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionPassword"&gt;passwd2&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.ConnectionDriverName"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver
&lt;/spring:prop&gt;
                &lt;spring:prop
key="javax.jdo.option.NontransactionalWrite"&gt;true&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.identifier.case"&gt;PreserveCase&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.fixedDatastore"&gt;true&lt;/spring:prop&gt;
                &lt;spring:prop
key="org.jpox.validateTables"&gt;false&lt;/spring:prop&gt;
            &lt;/spring:props&gt;
          &lt;/spring:property&gt;
        &lt;/spring:bean&gt;

So the first strange thing is that if I reverse their order, ie. if I have
the prod bean precede the cert bean, the app won't start, ie. it gives me a
socket error.

The second strange thing is that with the above, all operations to the cert
bean work flawlessly, but operations to the prod bean give me a timeout the
first time, but then after that, they work ever after.

If I restart the app, again the first operation on the prod bean times out,
and after that it works.

PS: if I have two beans that both run on the same port but different hosts,
everything works fine.  The two databases are set up identically.

What is going on?
Any help is appreciated.
-- 
View this message in context: http://www.nabble.com/Strange-timeout-problem-tp20923897p20923897.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: stopping query execution</title>
<author><name>&quot;Tomasz Toczyski&quot; &lt;guf@kajak.org.pl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200809.mbox/%3c863e85a958ffd2b5247be805bc6905fa.squirrel@www.active24.pl%3e"/>
<id>urn:uuid:%3c863e85a958ffd2b5247be805bc6905fa-squirrel@www-active24-pl%3e</id>
<updated>2008-09-01T15:06:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have forgotten to add that I use Kodo 4.1.

-tt.






</pre>
</div>
</content>
</entry>
<entry>
<title>stopping query execution</title>
<author><name>&quot;Tomasz Toczyski&quot; &lt;guf@kajak.org.pl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200809.mbox/%3c2696b9321f40c99ee621bea581ae9621.squirrel@www.active24.pl%3e"/>
<id>urn:uuid:%3c2696b9321f40c99ee621bea581ae9621-squirrel@www-active24-pl%3e</id>
<updated>2008-09-01T15:03:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!

Suppose I have a Query object q. I execute the query by:

q.executeWithArray(params);

The execution can take some time...

Is there any elegant possibility to stop execution of this query (from
another thread, of course) ?


-tt.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issue in performance</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200808.mbox/%3c200808251740.37982.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200808251740-37982-andy@datanucleus-org%3e</id>
<updated>2008-08-25T16:40:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

&gt; I am using kodo(JDO) for generation of query in our project.How can I
&gt; simulate the java code to generate the exists clause in my sql query?
&gt; Please throw some light on this.

I would have thought that the Oracle forum and support process would the best 
place to get detailed information about their implementation if you have 
performance issues with it. Aren't they giving support on Kodo now?

Getting an EXISTS clause generated from JDOQL would usually involve the use of 
the contains() or isEmpty() methods. 


If you deem that Oracle aren't serious about supporting their JDO 
implementation then DataNucleus is really what you should be trying, since we 
do treat JDO as a first class persistence specification ...


Regards
-- 
Andy  (DataNucleus - http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>Issue in performance</title>
<author><name>pandu &lt;udnapp@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200808.mbox/%3cd94f3d730808250201g6da59b8bqe89080391a7b90e0@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd94f3d730808250201g6da59b8bqe89080391a7b90e0@mail-gmail-com%3e</id>
<updated>2008-08-25T09:01:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All,

I am using kodo(JDO) for generation of query in our project.How can I
simulate the java code to generate the exists clause in my sql query?
Please throw some light on this.


Regards
Pandu


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Updating datastore with transient instance</title>
<author><name>Joerg von Frantzius &lt;joerg.von.frantzius@artnology.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200808.mbox/%3c48AD77AA.5090308@artnology.com%3e"/>
<id>urn:uuid:%3c48AD77AA-5090308@artnology-com%3e</id>
<updated>2008-08-21T14:11:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

the use-case sounds very reasonable to me, e.g. when the implementation
of a web-service sends out a serialized persistent object, receives back
the object with changes, and now needs to apply the changes to the
database.

Since makePersistent() is handling attaching so far, this could be the
place to transition such an object from transient to persistent-dirty
(with all fields marked dirty). Maybe an exception should be thrown when
there already is a persistent-dirty object with the same id managed by
the same PM. Since that would mean change of behaviour (somebody might
rely on inserting new objects when calling makePersistent() on transient
instances that have an id value), there probably should be an additional
setMergeOnMakePersistent(boolean) or something like that, defaulting to
the old behaviour.

This would only work for application-identity. For datastore-identity,
some new method(s) would be required to determine the objects' ids, as
Pavel suggested.

Regards,
JÃ¶rg

Pavel wrote:
&gt; Hi,
&gt;
&gt; This email is a continuation of discussion started at
&gt; http://www.jpox.org/servlet/forum/viewthread?thread=4893&amp;lastpage=yes .
&gt;
&gt; Quick summary is that there is a number of [I believe fairly strong] cases
&gt; where application deals with transient objects which somehow correspond to
&gt; already persisted objects.
&gt;
&gt; These instances have updated state in there, but persisting that state takes
&gt; extra code and datastore hits, just to preload persistent counterpart and
&gt; copy properties.
&gt;
&gt; My question is whether it is possible and makes sense for JDO to support
&gt; "attachment" of transient objects, so that
&gt; a) all the steps required for such "attachment" become duty of JDO
&gt; implementation, not client code and
&gt; b) reads before update are optimized (e.g. one read for collection) or
&gt; eliminated at all.
&gt;
&gt; Code-wise I imagine methods like
&gt;
&gt; // Application identity
&gt; &lt;T&gt; T attachTransient(T instanceWithAppIdentity);
&gt; &lt;T&gt; Collection&lt;T&gt; attachTransientAll(Collection&lt;T&gt;
&gt; instancesWithAppIdentity);
&gt;
&gt; // Datastore identity - client code provides id explicitly to let JDO
&gt; identify persistent counterpart
&gt; &lt;T&gt; T attachTransient(T instanceWithDSIdentity, Object id);
&gt; &lt;T&gt; Map&lt;Object, T&gt; attachTransientAll(Map&lt;Object, T&gt;
&gt; instancesWithDSIdentity);     // Map is {id =&gt; instance}
&gt;
&gt; What do you think?
&gt;
&gt; Thanks,
&gt; Pavel
&gt;
&gt;   


-- 
____________________________________________________________________
artnology GmbH - MilastraÃŸe 4 - 10437 Berlin - Germany
GeschÃ¤ftsfÃ¼hrer: Ekkehard Blome (CEO), Felix Kuschnick (CCO)
Registergericht: Amtsgericht Berlin Charlottenburg HRB 76376 
UST-Id. DE 217652550



</pre>
</div>
</content>
</entry>
<entry>
<title>[Fwd: [VOTE] Release Apache JDO 2.1.1]</title>
<author><name>Michelle Caisse &lt;Michelle.Caisse@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200808.mbox/%3c4896879D.8000105@sun.com%3e"/>
<id>urn:uuid:%3c4896879D-8000105@sun-com%3e</id>
<updated>2008-08-04T04:37:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT

FYI, this release fixes manifest file problem.

-- Michelle

-------- Original Message --------
Subject: 	[VOTE] Release Apache JDO 2.1.1
Date: 	Sat, 02 Aug 2008 09:41:56 -0700
From: 	Michelle Caisse &lt;Michelle.Caisse@Sun.COM&gt;
Reply-To: 	jdo-dev@db.apache.org
To: 	jdo-dev@db.apache.org, jdo-experts-ext@sun.com
: 	



This vote is to release the Apache JDO 2.1.1 TCK and API (both legacy 
and current versions) with the projects that they depend on: enhancer, 
model, and util.

[+1] Release JDO 2.1.1 api, tck, enhancer, model, and util
[0] Don't care
[-1] Don't release JDO 2.1.1 api, tck, enhancer, model, and util because:


The TCK can be tested from the staging area, 
http://people.apache.org/~mcaisse/jdo2.1.1/dist. Please follow the 
directions at http://wiki.apache.org/jdo/ReleaseTesting2dot1dot1 for 
downloading and testing.

JDO 2.1.1 provides fixes for the following issues:

    *

        http://issues.apache.org/jira/browse/JDO-584

    *

        http://issues.apache.org/jira/browse/JDO-585

    *

        http://issues.apache.org/jira/browse/JDO-586

    *

        http://issues.apache.org/jira/browse/JDO-593

    *

        http://issues.apache.org/jira/browse/JDO-600

    *

        http://issues.apache.org/jira/browse/JDO-601


Please test and vote. Voting will close at noon PDT Tuesday, August 5.

-- Michelle





</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Craig L Russell &lt;Craig.Russell@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c67C790EE-21F2-46D0-A7EF-C5A681BFBF66@SUN.com%3e"/>
<id>urn:uuid:%3c67C790EE-21F2-46D0-A7EF-C5A681BFBF66@SUN-com%3e</id>
<updated>2008-07-24T14:43:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We can get a fix out pretty quickly.

To be able to track the issue can you file a JDO JIRA? http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10630

Thanks,

Craig

On Jul 23, 2008, at 4:37 PM, Raymond Lai wrote:

&gt;
&gt; Hi there,
&gt;
&gt; As per discussion on
&gt;
&gt; http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVersion-having-trailing-spaces-td18613664.html#a18617865
&gt;
&gt; While they had committed a fix to Felix, the people there suggests  
&gt; it's also
&gt; the problem of the JDO2 API's jar file - more specifially, is this  
&gt; line:
&gt;
&gt; Bundle-ManifestVersion: 2
&gt;
&gt; The trailing space after 2 was causing the problem that made JDO2  
&gt; API cannot
&gt; be started on Apache Felix as an OSGi bundle.
&gt;
&gt; Would the people working on the JDO spec fix this line?
&gt;
&gt; TIA,
&gt; Raymond
&gt; -- 
&gt; View this message in context: http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18622812.html
&gt; Sent from the JDO - User mailing list archive at Nabble.com.
&gt;

Craig L Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Michelle Caisse &lt;Michelle.Caisse@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c48881B0A.603@sun.com%3e"/>
<id>urn:uuid:%3c48881B0A-603@sun-com%3e</id>
<updated>2008-07-24T06:02:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, I agree that it should be removed.

-- Michelle

Andy Jefferson wrote:

&gt;To Craig et al,
&gt;
&gt;why does jdo2.jar include the file "API2.MF" ? Yes this file should be put 
&gt;into the jar as the MANIFEST.MF but *not* also included in its own right. 
&gt;There's a block in project.xml that includes it - I suggest that needs 
&gt;removing.
&gt;
&gt;
&gt;  
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c200807240639.24970.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200807240639-24970-andy@datanucleus-org%3e</id>
<updated>2008-07-24T05:39:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To Craig et al,

why does jdo2.jar include the file "API2.MF" ? Yes this file should be put 
into the jar as the MANIFEST.MF but *not* also included in its own right. 
There's a block in project.xml that includes it - I suggest that needs 
removing.


-- 
Andy  (DataNucleus - http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Andy Jefferson &lt;andy@datanucleus.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c200807240622.01794.andy@datanucleus.org%3e"/>
<id>urn:uuid:%3c200807240622-01794-andy@datanucleus-org%3e</id>
<updated>2008-07-24T05:22:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; The trailing space after 2 was causing the problem that made JDO2 API
&gt; cannot be started on Apache Felix as an OSGi bundle.
&gt;
&gt; Would the people working on the JDO spec fix this line?

The code in SVN no longer has a trailing space for the MANIFEST, nor for the 
other lines. Someone must have been using a Windows editor or something ;-)
This will affect JDO2.2 onwards.


Regards
-- 
Andy  (DataNucleus - http://www.datanucleus.org)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Chris Beams &lt;cbeams@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c578124E0-28E3-4120-BB9A-18D74F4E336D@gmail.com%3e"/>
<id>urn:uuid:%3c578124E0-28E3-4120-BB9A-18D74F4E336D@gmail-com%3e</id>
<updated>2008-07-24T03:14:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I've added an issue to include 2.1, thanks Raymond.  Perhaps the JDO  
team will fix the issue before we get it done on our end, but either  
way it will be good to have it there.

Feel free to add yourself as a watcher to this issue:
https://issuetracker.springsource.com/browse/BRITS-119

- Chris

On Jul 23, 2008, at 8:00 PM, Raymond Lai wrote:

&gt;
&gt; But unfortunately, I'm also using JDO 2.1 annotations which is  
&gt; available only
&gt; from JDO 2.1 API. So... no go. :-(
&gt;
&gt; Thanks for your kind help anyway,
&gt; Raymond
&gt;
&gt;
&gt; cbeams wrote:
&gt;&gt;
&gt;&gt; Raymond,
&gt;&gt;
&gt;&gt; In the meantime, consider using the bundle we've packaged within the
&gt;&gt; SpringSource Enterprise Bundle Repository.  That manifest should be  
&gt;&gt; OK.
&gt;&gt;
&gt;&gt; http://springsource.com/repository/app/bundle/version/detail?name=com.springsource.javax.jdo&amp;version=2.0.0
&gt;&gt;
&gt;&gt; - Chris
&gt;&gt;
&gt;&gt; Chris Beams
&gt;&gt; Sr. Consultant, SpringSource
&gt;&gt; http://springsource.com
&gt;&gt;
&gt;&gt;
&gt;&gt; On Jul 23, 2008, at 4:37 PM, Raymond Lai wrote:
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi there,
&gt;&gt;&gt;
&gt;&gt;&gt; As per discussion on
&gt;&gt;&gt;
&gt;&gt;&gt; http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVersion-having-trailing-spaces-td18613664.html#a18617865
&gt;&gt;&gt;
&gt;&gt;&gt; While they had committed a fix to Felix, the people there suggests
&gt;&gt;&gt; it's also
&gt;&gt;&gt; the problem of the JDO2 API's jar file - more specifially, is this
&gt;&gt;&gt; line:
&gt;&gt;&gt;
&gt;&gt;&gt; Bundle-ManifestVersion: 2
&gt;&gt;&gt;
&gt;&gt;&gt; The trailing space after 2 was causing the problem that made JDO2
&gt;&gt;&gt; API cannot
&gt;&gt;&gt; be started on Apache Felix as an OSGi bundle.
&gt;&gt;&gt;
&gt;&gt;&gt; Would the people working on the JDO spec fix this line?
&gt;&gt;&gt;
&gt;&gt;&gt; TIA,
&gt;&gt;&gt; Raymond
&gt;&gt;&gt; -- 
&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt; http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18622812.html
&gt;&gt;&gt; Sent from the JDO - User mailing list archive at Nabble.com.
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; -- 
&gt; View this message in context: http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18624618.html
&gt; Sent from the JDO - User mailing list archive at Nabble.com.
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Raymond Lai &lt;airwave209gt@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c18624618.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c18624618-post@talk-nabble-com%3e</id>
<updated>2008-07-24T03:00:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

But unfortunately, I'm also using JDO 2.1 annotations which is available only
from JDO 2.1 API. So... no go. :-(

Thanks for your kind help anyway,
Raymond


cbeams wrote:
&gt; 
&gt; Raymond,
&gt; 
&gt; In the meantime, consider using the bundle we've packaged within the  
&gt; SpringSource Enterprise Bundle Repository.  That manifest should be OK.
&gt; 
&gt; http://springsource.com/repository/app/bundle/version/detail?name=com.springsource.javax.jdo&amp;version=2.0.0
&gt; 
&gt; - Chris
&gt; 
&gt; Chris Beams
&gt; Sr. Consultant, SpringSource
&gt; http://springsource.com
&gt; 
&gt; 
&gt; On Jul 23, 2008, at 4:37 PM, Raymond Lai wrote:
&gt; 
&gt;&gt;
&gt;&gt; Hi there,
&gt;&gt;
&gt;&gt; As per discussion on
&gt;&gt;
&gt;&gt; http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVersion-having-trailing-spaces-td18613664.html#a18617865
&gt;&gt;
&gt;&gt; While they had committed a fix to Felix, the people there suggests  
&gt;&gt; it's also
&gt;&gt; the problem of the JDO2 API's jar file - more specifially, is this  
&gt;&gt; line:
&gt;&gt;
&gt;&gt; Bundle-ManifestVersion: 2
&gt;&gt;
&gt;&gt; The trailing space after 2 was causing the problem that made JDO2  
&gt;&gt; API cannot
&gt;&gt; be started on Apache Felix as an OSGi bundle.
&gt;&gt;
&gt;&gt; Would the people working on the JDO spec fix this line?
&gt;&gt;
&gt;&gt; TIA,
&gt;&gt; Raymond
&gt;&gt; -- 
&gt;&gt; View this message in context:
&gt;&gt; http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18622812.html
&gt;&gt; Sent from the JDO - User mailing list archive at Nabble.com.
&gt;&gt;
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18624618.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>&quot;Leschke Scott-NVCX76&quot; &lt;scott.leschke@motorola.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3cEF77ACD1B658A947BCB50A25C498847F525598@de01exm72.ds.mot.com%3e"/>
<id>urn:uuid:%3cEF77ACD1B658A947BCB50A25C498847F525598@de01exm72-ds-mot-com%3e</id>
<updated>2008-07-24T00:22:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 
I noticed that the jdo2 api jar isn't recognized in Eclipse v3.4
(Ganymeede) while it is in v3.3. My guess is that it's the same issue.

Scott

-----Original Message-----
From: Raymond Lai [mailto:airwave209gt@gmail.com] 
Sent: Wednesday, July 23, 2008 6:38 PM
To: jdo-user@db.apache.org
Subject: JDO2 API's manifest file problem with Apache Felix


Hi there,

As per discussion on

http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVer
sion-having-trailing-spaces-td18613664.html#a18617865

While they had committed a fix to Felix, the people there suggests it's
also the problem of the JDO2 API's jar file - more specifially, is this
line:

Bundle-ManifestVersion: 2 

The trailing space after 2 was causing the problem that made JDO2 API
cannot be started on Apache Felix as an OSGi bundle.

Would the people working on the JDO spec fix this line?

TIA,
Raymond
--
View this message in context:
http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Fel
ix-tp18622812p18622812.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Chris Beams &lt;cbeams@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c0BB5E40D-15BB-4A57-975B-EE4B175ECAEA@gmail.com%3e"/>
<id>urn:uuid:%3c0BB5E40D-15BB-4A57-975B-EE4B175ECAEA@gmail-com%3e</id>
<updated>2008-07-23T23:56:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Raymond,

In the meantime, consider using the bundle we've packaged within the  
SpringSource Enterprise Bundle Repository.  That manifest should be OK.

http://springsource.com/repository/app/bundle/version/detail?name=com.springsource.javax.jdo&amp;version=2.0.0

- Chris

Chris Beams
Sr. Consultant, SpringSource
http://springsource.com


On Jul 23, 2008, at 4:37 PM, Raymond Lai wrote:

&gt;
&gt; Hi there,
&gt;
&gt; As per discussion on
&gt;
&gt; http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVersion-having-trailing-spaces-td18613664.html#a18617865
&gt;
&gt; While they had committed a fix to Felix, the people there suggests  
&gt; it's also
&gt; the problem of the JDO2 API's jar file - more specifially, is this  
&gt; line:
&gt;
&gt; Bundle-ManifestVersion: 2
&gt;
&gt; The trailing space after 2 was causing the problem that made JDO2  
&gt; API cannot
&gt; be started on Apache Felix as an OSGi bundle.
&gt;
&gt; Would the people working on the JDO spec fix this line?
&gt;
&gt; TIA,
&gt; Raymond
&gt; -- 
&gt; View this message in context: http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18622812.html
&gt; Sent from the JDO - User mailing list archive at Nabble.com.
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>JDO2 API's manifest file problem with Apache Felix</title>
<author><name>Raymond Lai &lt;airwave209gt@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200807.mbox/%3c18622812.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c18622812-post@talk-nabble-com%3e</id>
<updated>2008-07-23T23:37:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi there,

As per discussion on

http://www.nabble.com/Is-it-a-bug--Felix-cannot-parse-Bundle-ManifestVersion-having-trailing-spaces-td18613664.html#a18617865

While they had committed a fix to Felix, the people there suggests it's also
the problem of the JDO2 API's jar file - more specifially, is this line:

Bundle-ManifestVersion: 2 

The trailing space after 2 was causing the problem that made JDO2 API cannot
be started on Apache Felix as an OSGi bundle.

Would the people working on the JDO spec fix this line?

TIA,
Raymond
-- 
View this message in context: http://www.nabble.com/JDO2-API%27s-manifest-file-problem-with-Apache-Felix-tp18622812p18622812.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Updating datastore with transient instance</title>
<author><name>Pavel &lt;pagrus@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200805.mbox/%3cf2ace7ab0805311518v7117795bp660f56f7bf5a477a@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf2ace7ab0805311518v7117795bp660f56f7bf5a477a@mail-gmail-com%3e</id>
<updated>2008-05-31T22:18:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

This email is a continuation of discussion started at
http://www.jpox.org/servlet/forum/viewthread?thread=4893&amp;lastpage=yes .

Quick summary is that there is a number of [I believe fairly strong] cases
where application deals with transient objects which somehow correspond to
already persisted objects.

These instances have updated state in there, but persisting that state takes
extra code and datastore hits, just to preload persistent counterpart and
copy properties.

My question is whether it is possible and makes sense for JDO to support
"attachment" of transient objects, so that
a) all the steps required for such "attachment" become duty of JDO
implementation, not client code and
b) reads before update are optimized (e.g. one read for collection) or
eliminated at all.

Code-wise I imagine methods like

// Application identity
&lt;T&gt; T attachTransient(T instanceWithAppIdentity);
&lt;T&gt; Collection&lt;T&gt; attachTransientAll(Collection&lt;T&gt;
instancesWithAppIdentity);

// Datastore identity - client code provides id explicitly to let JDO
identify persistent counterpart
&lt;T&gt; T attachTransient(T instanceWithDSIdentity, Object id);
&lt;T&gt; Map&lt;Object, T&gt; attachTransientAll(Map&lt;Object, T&gt;
instancesWithDSIdentity);     // Map is {id =&gt; instance}

What do you think?

Thanks,
Pavel


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Jdo commit resets Thread's interrupted flag</title>
<author><name>Craig L Russell &lt;Craig.Russell@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200805.mbox/%3c86371321-EEAC-42C9-A68F-4FF6582415F1@SUN.com%3e"/>
<id>urn:uuid:%3c86371321-EEAC-42C9-A68F-4FF6582415F1@SUN-com%3e</id>
<updated>2008-05-16T16:55:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Soham,

What implementation of jdo are you using? Sounds like a bug in the  
interaction of your application and the environment (Spring and ???).

Craig

On May 1, 2008, at 11:22 PM, Soham Ghosh wrote:

&gt; Hi,
&gt; I have the following problem:
&gt; Thread T1 is interrupted so its interrupted flag is set to true.  
&gt; After that,
&gt; it tries to create some record in the db using spring and jdo. After  
&gt; the
&gt; records are committed, the thread's interrupted flag is reset to  
&gt; false. Any
&gt; idea why?
&gt;
&gt; Thanks
&gt; Soham

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Why aren't JDO annotations @Documented?</title>
<author><name>Michelle Caisse &lt;Michelle.Caisse@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200805.mbox/%3c482DBB52.1070507@sun.com%3e"/>
<id>urn:uuid:%3c482DBB52-1070507@sun-com%3e</id>
<updated>2008-05-16T16:50:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Daniel,

This is easy to add. Could you file a JIRA?  
http://issues.apache.org/jira/secure/BrowseProject.jspa

Thanks,
Michelle

Daniel L Leary wrote:

&gt; Is there any reason that JDO annotations aren't marked @Documented?
&gt;
&gt; -Dan



</pre>
</div>
</content>
</entry>
<entry>
<title>Jdo commit resets Thread's interrupted flag</title>
<author><name>&quot;Soham Ghosh&quot; &lt;gzsoham@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200805.mbox/%3c2eb84d560805012322r48371f68t2d99f8c033868dcf@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2eb84d560805012322r48371f68t2d99f8c033868dcf@mail-gmail-com%3e</id>
<updated>2008-05-02T06:22:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I have the following problem:
Thread T1 is interrupted so its interrupted flag is set to true. After that,
it tries to create some record in the db using spring and jdo. After the
records are committed, the thread's interrupted flag is reset to false. Any
idea why?

Thanks
Soham


</pre>
</div>
</content>
</entry>
<entry>
<title>Why aren't JDO annotations @Documented?</title>
<author><name>Daniel L Leary &lt;dll@mocasystems.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200804.mbox/%3c48188D56.1070307@mocasystems.com%3e"/>
<id>urn:uuid:%3c48188D56-1070307@mocasystems-com%3e</id>
<updated>2008-04-30T15:16:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Is there any reason that JDO annotations aren't marked @Documented?

-Dan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem while downloading JDO 2.1</title>
<author><name>Michelle Caisse &lt;Michelle.Caisse@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200803.mbox/%3c47EBC067.90601@sun.com%3e"/>
<id>urn:uuid:%3c47EBC067-90601@sun-com%3e</id>
<updated>2008-03-27T15:42:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Markus,

I believe that I have fixed the problem with release-2.1.cgi, though it 
may take a few hours to reach the external site. The spec is actually 
not there. The official 2.1 spec will be available from 
http://jcp.org/en/jsr/detail?id=243 in a few days. Currently, you can 
download the final draft at 
http://db.apache.org/jdo/specifications.html. There are no changes from 
that version to the one that will be on the JCP site.

I don't have any trouble with the ibiblio link to jdo2-api-2.0.jar. I 
can also get the 2.1 jar by just changing that URL from...2.0.jar to 
2.1.jar. Maybe there was a temporary problem at ibiblio.

You can get all the jar files by browsing 
http://www.ibiblio.org/maven/javax.jdo/jars/ and 
http://www.ibiblio.org/maven/org.apache.jdo/jars/. And the final 2.1 
javadoc is at the Apache JDO site: http://db.apache.org/jdo/javadoc.html.

Hope this helps,
Michelle

Markus.Bach@hydrometer.de wrote:

&gt;Hi.
&gt;
&gt;I tried to download the latest version of the JDO 2.1 spec from the
&gt;downloads page of db.apache.org.
&gt;But everytime I click on the link
&gt;http://db.apache.org/jdo/releases/release-2.1.cgi I get an "Internal Server
&gt;Error".
&gt;If I try to download JDO 2.0 I can see the next page with the download
&gt;links for all the JDO
&gt;parts, but then the link
&gt;http://www.ibiblio.org/maven/javax.jdo/jars/jdo2-api-2.0.jar gives me an
&gt;"Internal Server Error" too.
&gt;
&gt;Please, can some fix the links for downloading?
&gt;
&gt;Thanks
&gt;
&gt;Markus
&gt;_____________________________________________________________________________________
&gt;
&gt;Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/
&gt;before printing, think about environmental responsibility.
&gt;
&gt;Hydrometer GmbH, Industriestraße 13, 91522 Ansbach,
&gt;Telefon + 49 981 1806 0, Telefax +49 981 1806 615
&gt;Sitz der Gesellschaft: Ansbach, Registriergericht: Ansbach HRB 69
&gt;Geschäftsführer: Johannes Sappa (Sprecher), Dr.-Ing. Robert Westphal
&gt;
&gt;Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese
&gt;E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
&gt;Informieren Sie    uns bitte, wenn Sie diese E-Mail fälschlicherweise
&gt;erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede
&gt;unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung
&gt;und/oder Publikation dieser E-Mail ist strengstens untersagt.
&gt;
&gt;The contents of the above mentioned e-mail is not legally binding. This
&gt;e-mail contains confidential and/or legally protected information. Please
&gt;inform us if you have received this e-mail by mistake and delete it in such
&gt;a case. Each unauthorized reproduction, disclosure, alteration,
&gt;distribution and/or publication of this e-mail is strictly prohibited.
&gt;
&gt;  
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Problem while downloading JDO 2.1</title>
<author><name>Markus.Bach@hydrometer.de</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200803.mbox/%3cOF3A5098FB.CA165386-ONC1257419.003B5FCE-C1257419.003BCE67@diehl-gruppe.de%3e"/>
<id>urn:uuid:%3cOF3A5098FB-CA165386-ONC1257419-003B5FCE-C1257419-003BCE67@diehl-gruppe-de%3e</id>
<updated>2008-03-27T10:53:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi.

I tried to download the latest version of the JDO 2.1 spec from the
downloads page of db.apache.org.
But everytime I click on the link
http://db.apache.org/jdo/releases/release-2.1.cgi I get an "Internal Server
Error".
If I try to download JDO 2.0 I can see the next page with the download
links for all the JDO
parts, but then the link
http://www.ibiblio.org/maven/javax.jdo/jars/jdo2-api-2.0.jar gives me an
"Internal Server Error" too.

Please, can some fix the links for downloading?

Thanks

Markus
_____________________________________________________________________________________

Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/
before printing, think about environmental responsibility.

Hydrometer GmbH, Industriestraße 13, 91522 Ansbach,
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registriergericht: Ansbach HRB 69
Geschäftsführer: Johannes Sappa (Sprecher), Dr.-Ing. Robert Westphal

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese
E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Informieren Sie    uns bitte, wenn Sie diese E-Mail fälschlicherweise
erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede
unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung
und/oder Publikation dieser E-Mail ist strengstens untersagt.

The contents of the above mentioned e-mail is not legally binding. This
e-mail contains confidential and/or legally protected information. Please
inform us if you have received this e-mail by mistake and delete it in such
a case. Each unauthorized reproduction, disclosure, alteration,
distribution and/or publication of this e-mail is strictly prohibited.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: O/RM mapping</title>
<author><name>Christiaan &lt;christiaan_db@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/db-jdo-user/200801.mbox/%3c14837564.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c14837564-post@talk-nabble-com%3e</id>
<updated>2008-01-15T11:10:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,
Kodo (a commercial solution) offers a tool with three types of mapping:
forward, reverse (database to class) and meet-in-the-middle. See
http://edocs.bea.com/kodo/docs41/full/html/ref_guide_mapping.html

kind regards,
Christiaan
-- 
View this message in context: http://www.nabble.com/O-RM-mapping-tp14802967p14837564.html
Sent from the JDO - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
</feed>
