On Thu, May 21, 2009 at 8:57 PM, Pinaki Poddar wrote:
>
> Hi,
> If OpenJPA has understood what you told in persistence.xml, then OpenJPA
> should call
>MyDataSource.getConnection()
> when a connection is needed.
> To quickly verify call:
>OpenJPAEntityManager.getConnection();
>
> Yes,
On Thu, May 21, 2009 at 8:50 PM, Pinaki Poddar wrote:
>
> Hi Daryl,
> something like:
> /**
> * Pour the persistent state of the given other instance into this
> (detached) instance.
> * Some sort of reverse Object.clone().
> * The implementation has to decide whether to deep copy or n
Hi,
If OpenJPA has understood what you told in persistence.xml, then OpenJPA
should call
MyDataSource.getConnection()
when a connection is needed.
To quickly verify call:
OpenJPAEntityManager.getConnection();
Daryl Stultz wrote:
>
> On Thu, May 21, 2009 at 5:16 PM, Pinaki Podd
Hi Daryl,
something like:
/**
* Pour the persistent state of the given other instance into this
(detached) instance.
* Some sort of reverse Object.clone().
* The implementation has to decide whether to deep copy or not.
**/
abstract void enolc(JpaEntity other);
public void
On Thu, May 21, 2009 at 5:16 PM, Pinaki Poddar wrote:
>
> Hi,
> How did you tell OpenJPA to use "MyDataSource"?
First I asked nicely, then I got ignorant with it, then I put this in
persistence.xml:
--
Daryl Stultz
_
6 Degrees Software and Consulting, I
On Thu, May 21, 2009 at 5:10 PM, Pinaki Poddar wrote:
>
> Looks like you need a "copy constructor" in JpaEntity.
>
Hmm, I'm a little slow... could you elaborate?
--
Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:da..
Hi,
Parsing problem with plug-in string.
Please try :
Notice the single-quotes.
-
Pinaki Poddar http://ppoddar.blogspot.com/
http://www.linkedin.com/in/pinakipoddar
OpenJPA PMC Member/Committer
JPA Expert Group Member
--
Hi,
How did you tell OpenJPA to use "MyDataSource"?
Daryl Stultz wrote:
>
> Hello, I've been doing various "academic" work in a standalone Java app
> getting to know things. Now I am putting together a Tomcat webapp and
> running into a problem. From first start, everything is working fine
Hi daryl,
> Basically, given a detached instance that may have been modified, I want
to reload it.
Looks like you need a "copy constructor" in JpaEntity.
-
Pinaki Poddar http://ppoddar.blogspot.com/
http://www.linkedin.com/in/
Hello,
I'm trying to create a convenient super class for my entities:
public abstract class JpaEntity implements Identifiable, Saveable,
Deletable, Loadable {
public void load() throws Exception { // Loadable
EntityManager em = ...
//em.merge(this); // uh, what?
em.re
Hello, I've been doing various "academic" work in a standalone Java app
getting to know things. Now I am putting together a Tomcat webapp and
running into a problem. From first start, everything is working fine. When
the app reloads, however, I get this:
org.apache.openjpa.persistence.Persistence
On Thu, May 21, 2009 at 12:02 PM, Gene Shaw wrote:
> This is how I have been handling passing of properties of to our ant
> mapping task.
Sweet, that does it. Turns out it works for the enhancer task as well...
Thanks.
--
Daryl Stultz
_
6 Degrees Software a
Hello everybody,
I want to configure the openjpa.jdbc.SynchronizeMappings property in my
persistence.xml in a way that it...
1. ... drops all tables in the database schema (drop whole schema)
2. ... recreates the schema
3. ... builds tables for all entity classes
My Intention is, also to clear
Gene, you're doing it right :-)
-mike
On Thu, May 21, 2009 at 11:02 AM, Gene Shaw wrote:
> This is how I have been handling passing of properties of to our ant
> mapping task. All of the persistence classes are
> still listed in our persistence.xml file. I am still pretty new too this
> stuff
This is how I have been handling passing of properties of to our ant
mapping task. All of the persistence classes are
still listed in our persistence.xml file. I am still pretty new too
this stuff so I could be doing it wrong but this seems to work for me.
classname="org.apache.ope
Hello, my persistence.xml includes properties like so:
This doesn't work for the ant mapping task (maybe it CAN, but I haven't
written it to do so). So I need this in my persistence.xml file:
Is there a way I can specify these properties for the mapping task? I could
use a copy of persist
Hi Jody,
Using @MappedSuperclass may be "more correct" for this scenario, but I don't
think it's a requirement in general.
I'm not sure why introducing an abstract class in the hierarchy would
require a reset of the inheritance strategy. Abstract classes cannot have an
instance but you can query
Hi Henry,
Many of us have not used FoxPro so we don't know what you mean by a dbf or
fpt file. When you do get an example working please post the details and we
can add it to the wiki / FAQ / somewhere.
Thanks,
-mike
On Thu, May 21, 2009 at 8:54 AM, Rick Curtis wrote:
>
> Henry -
> I would su
Henry -
I would suggesting taking a look through the OpenJPA samples as a starting
point [1]. These samples use Derby by default, but *should* be able to use
FoxPro with a small amount of work. Another link you'll want to take a look
at are the known issues with FoxPro [2]. Let us know how it goes
Just to complete my findings from the earlier post... Here's a reference
[1] to the previous, recent discussion on the detach vs clear processing.
This particular customer problem ended up being a problem with Hessian
serialization, but it still looks like our detachment processing is not the
same
I am new to the JPA. Could some one send me a simple example to
1. open a FoxPro database (dbf file, fpt file,...)
2. select * from student
Our foxpro does not support client/sercer.
-Henry
21 matches
Mail list logo