foxpro example

2009-05-21 Thread Henry Lu
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

Re: Date Problem

2009-05-21 Thread Kevin Sutter
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

Re: foxpro example

2009-05-21 Thread Michael Dick
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 curti...@gmail.com wrote:

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-21 Thread Michael Dick
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

Mapping Ant Task - configure datasource

2009-05-21 Thread Daryl Stultz
Hello, my persistence.xml includes properties like so: property name=openjpa.ConnectionDriverName value=MyDataSource / property name=openjpa.ConnectionProperties value=Thing=one/ 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

Re: Mapping Ant Task - configure datasource

2009-05-21 Thread Gene Shaw
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. target name=map_build

Re: Mapping Ant Task - configure datasource

2009-05-21 Thread Michael Dick
Gene, you're doing it right :-) -mike On Thu, May 21, 2009 at 11:02 AM, Gene Shaw gs...@ogresystems.com 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

SynchronizeMappings settings

2009-05-21 Thread Naomi-san
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

Re: Mapping Ant Task - configure datasource

2009-05-21 Thread Daryl Stultz
On Thu, May 21, 2009 at 12:02 PM, Gene Shaw gs...@ogresystems.com 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 _

Re: SynchronizeMappings settings

2009-05-21 Thread Pinaki Poddar
Hi, Parsing problem with plug-in string. Please try : property name=openjpa.jdbc.SynchronizeMappings, value=buildSchema(SchemaAction='dropDB,createDB,add,OpenJPATables=true')/ Notice the single-quotes. - Pinaki Poddar http://ppoddar.blogspot.com/

Re: Refresh myself!

2009-05-21 Thread Daryl Stultz
On Thu, May 21, 2009 at 5:10 PM, Pinaki Poddar ppod...@apache.org 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.

Re: Refresh myself!

2009-05-21 Thread Pinaki Poddar
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

Re: Webapp restart problem

2009-05-21 Thread Daryl Stultz
On Thu, May 21, 2009 at 8:57 PM, Pinaki Poddar ppod...@apache.org 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: