> bin is managed by Eclipse : src/META-INF should be OK if I manage to have only one persistence.xml file. Correct. Eclipse will automatically move src/META-INF to bin.
> Very good idea, but how to tell openjpac with persistence unit to use ?? I think you can try something like "-p #[pu_name]". ... I'm not sure how nicely that'll play with the eclipse ant configuration, but you should be able to get it to work. http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_conf_devtools Thanks, Rick On Tue, Aug 10, 2010 at 11:04 AM, Jean-Baptiste BRIAUD -- Novlog < [email protected]> wrote: > > On 10 août 2010, at 17:19, Rick Curtis wrote: > > >> Where is the persistent.xml file ? > > It needs be in bin/META-INF. > > > > bin is managed by Eclipse : src/META-INF should be OK if I manage to have > only one persistence.xml file. > > >> I used to have several persistent.xml files : one for build-time > enhancing > > and another slightly different one as runtime-time config. How can I > manage > > that ? > > I'd think you could get away with a single persistence.xml file but with > two > > different persistence units. One for the buildtime enhancement and the > other > > to be used at runtime. > > Very good idea, but how to tell openjpac with persistence unit to use ?? > > > > > Thanks, > > Rick > > > > On Tue, Aug 10, 2010 at 9:55 AM, Jean-Baptiste BRIAUD -- Novlog < > > [email protected]> wrote: > > > >> Hi, > >> > >> I'm trying to set an OpenJPA project with Eclipse (I'm currently using > >> IntelliJ). > >> > >> I checked that page : > >> http://openjpa.apache.org/enhancement-with-eclipse.html > >> and decided to go with custom Ant builder. > >> > >> Where is the persistent.xml file ? > >> Unfortunately, the file is not mentioned in the example gray zone. > >> > >> I used to have several persistent.xml files : one for build-time > enhancing > >> and another slightly different one as runtime-time config. > >> How can I manage that ? > >> > >> > >> Thanks ! > >
