Can you probably create a small sample project with the entities + a small unit
test?
That way we can make sure to really talk about exactly the same scenario.
txs and LieGrue,
strub
> Am 23.03.2023 um 18:16 schrieb Marco DE BOOIJ :
>
> I searched on the web but cannot filter out the solution.
Hi Rob!
It's even a bit more complicated. During the javax -> jakarta spec migration we
found a few javax packages which will remain in the JDK and thus remain to keep
the javax package name. The javax.transaction.xa is one of those. It is also
not part of the official jakarta jta packages.
Hi! Does it help if you remove it for now? Should not go grab some xsd from
remote somewhere tbh.
If we do, then it's a bug!
LieGrue,
strub
> Am 15.03.2021 um 19:21 schrieb Patrice Duroux :
>
>
> Hi,
>
> For the past few weeks, OpenJPA has not been able to systematically
> iniitialize
Hi Pawel, thanks for the report.
I hope I find some time to address that soonish.
Did you create a ticket for it already?
txs and LieGrue,
strub
> Am 24.12.2020 um 09:57 schrieb Pawel Veselov :
>
> Hello.
>
> I was rather excited when I saw the statement on
> http://openjpa.apache.org/ that
The Apache OpenJPA team is pleased to announce the release of Apache OpenJPA
3.1.2!
Apache OpenJPA is a Java Persistence API implementation project at The Apache
Software Foundation.
It can be used as a stand-alone POJO persistence layer or integrated into any
Java EE compliant container and
Hi Xavier!
I'd need to debug through this!
Can you probably share how you created the Entities and the database?
Do you create the DB manually or via OpenJPA?
Is there an explicit name in the @Column annotation or the orm?
In other words: for reproducing the problem we need to know pretty much
Hi Pawel!
Would need to dig deeper. Can you possibly please create a JIRA ticket for
OPENJPA?
So we can better track this!
Thanks!
LieGrue,
strub
> Am 20.02.2020 um 18:22 schrieb Pawel Veselov :
>
> Hello.
>
> I've found out that using PESSIMISTIC_READ on an entity with postgres
> uses
Do you have an example code somewhere?
LieGrue,
strub
> Am 04.11.2019 um 16:46 schrieb Matthew Broadhead
> :
>
> i am using value="buildSchema(ForeignKeys=true)" /> to generate the MySQL tables based
> on the entities.
>
> however @Column(unique = true) does not seem to have flaged the
her threads to behave differently and unexpectedly. Plus,
> restoring the state has a race condition, causing
> the wrong compat settings to get stuck.
>
> -- Pawel.
>
>
> On Thu, Jul 18, 2019 at 9:30 AM Mark Struberg
> wrote:
>
>> Hi Pawel!
>>
>> I fear you are h
Hi Pawel!
I fear you are hitting a rather lightly used path in OpenJPA.
Although I wonder why you can hit a race condition?
An EntityManager - and thus it's entities - are intended to be accessed only
from a single thread at a time.
Storing entities in a shared cache or whatever concurrently
You can provide a map to
javax.persistence.Persistence#createEntityManagerFactory(String pu, Map
properties);
That way you can define the Driver, jdbc user + pwc, url, etc
That way you don't need anything in your persistence.xml.
If you use CDI you can create a producer for it or use the one
Hi Rob!
Thanks for your example!
I'll gonna check your sample and try to get it working.It's likely not working
in 3.0.0 right now, but we try to fix it for 3.0.1.
What you can do in the meantime is to use a ValueHandler instead.
This is the OpenJPA specific version which predates the JPA
Not yet but it‘s on my list!
And please keep reminding me! Tryind to do it this week!
LieGrue,
Dtrub
> Am 20.01.2019 um 23:43 schrieb Pawel Veselov :
>
> Mark,
>
> Entschuldigung for the nagging, any luck? :)
>
>> On Tue, Jan 1, 2019 at 11:08 PM Mark Struberg
>
hi folks!
I think the times of the 1.x rage of OpenJPA is over.
This is our JPA-1.0 branch (JavaEE5).
Wdyt about declaring it EOL and closing all the tickets for it?
Of course OpenJPA-2.x and 3.x will continue to be active!
LieGrue,
strub
Hi Matthew!
As Craig already explained they contain the hightest value for a specified
index.
Of course only if no Database Sequence got used!
The reason to use this over a Sequence is to have a database independent
counter which is fully portable.
There are also multiple 'modes' for the
The generator happens in the MappingTool. This is the top-level.Probably the
best guess is to set a breakpoint in DBDictionary#getCreateIndexSQLThe
DBDictionary (and it's respecive subclasses) is where all the adopting to
different databases happens.
LieGrue,strub
On Tuesday, 18 December
Sorry Pavel, right now sitting over a nasty glitch in a few of our unit
tests.After that I'll run through your tickets.
LieGrue,strub
On Monday, 31 December 2018, 05:08:06 CET, Pawel Veselov
wrote:
Hello.
I've been using OpenJPA for a while, and I'd like to understand what's
going
do you mind to share the entities?
LieGrue,strub
On Friday, 2 November 2018, 12:31:20 CET, Stephane Passignat
wrote:
Hello,
When a class (Product) have 2 collections (I only checked with reversed
mapping) of concrete objects (one of MecanicalFeature and one of
ElectricalFeature)
'not able to find it right after'
+1 to what Matthew said. We need a bit more info.
Say you have the following code:
Customer c = new Customer();c.setName("Bla");em.persist(c);Long id = c.getId();
is this about what you did?
Plus: what enhancement strategy do you use? And what @GenerationType if
Good morning!
As previously discussed: I now created a master branch which will contain the
ongoing work in Apache OpenJPA 3.x.
The 'trunk' git branch is now defunct and only kept for historical reasons.
I'll add a small note in the README.
Please check out the master branch for futher work!
Good afternoon!
Our main source repo is now hosted via GIT
> Chris Thistlethwaite added a comment - Just now > SVN marked read only,
> git.apache.org updated, migrated to gitbox.
>
> Go through any setup on https://gitbox.apache.org/setup/
>
> Your remotes are now:
>
>
In practice this is likelymuch more complicated. Where are the boundaries?
If you have a Person which has a relation to a Company, then I assume you do
not want to also clone the whole Company, right? ;)
But of course, the n Address rows probably should get cloned?
Do you see what I mean? This
puh, cannot answer out of my head, but will write a unit test to dig.
Might help if you could provide a sample which also runs against EclipseLink
and Hibernate.
After all this is also about interoperability.
LieGrue,
strub
> Am 07.09.2017 um 18:56 schrieb Matthew Broadhead
>
Hi!
You mind to send a patch?
txs and LieGrue,
strub
> Am 21.07.2017 um 23:50 schrieb Matthew Broadhead
> :
>
> Hi Rob,
>
> yes thanks in the end i did this
> Join detail = entity.join(EntityZ_.details);
>
> the documentation page linked in
Hi Malte!
puh, that's a pretty tricky puzzler.
You flush and detach. At this point the 'data' instance has the information
that it got inserted.
Since the entity got detached it also has no further information that the
transaction got rolled back.
So technically I can understand what happens.
Hi Charlie!
trunk is targetting JPA-2.1 but we still have quite a bit to go until we are
spec compliant.
LieGrue,
strub
> Am 10.02.2017 um 15:02 schrieb Charlie Mordant :
>
> Hi best ORM mapper implementers!
>
> I caught some mailing list mails which spoke about 2.1
Maybe you have an import of a class which doesn't exist?
Did you try to debug into and do a Class.forName in the debugger?
It also might be something missing by the annotations.
Just a first guess.
LIeGrue,
strub
> Am 03.02.2017 um 20:17 schrieb Pachler, Uwe :
>
>
Roberto, do you mind to probably contribute this to the OpenJPA project?
Could make a nice addition alongside the openjpa-maven-plugin!
txs and LieGrue,
strub
> Am 18.01.2017 um 16:13 schrieb Roberto Cortez :
>
> Hi Vardhaman,
> Sorry for this late response.
> I've
Good evening!
The OpenJPA community is happy to announce that Christan Schneider will join
the project as committer.
Christian is an OSGi Expert and especially intersted to smoothen the experience
of running OpenJPA in Camel, Karaf, etc.
Welcome on board, Christian!
your OpenJPA team
nths migrating to myfaces and openjpa on the suggestion of romain i now
> find that openjpa cannot lazy load entities from jsf which is fairly
> disappointing to say the least. is my best route to go back to eclipselink?
>
> On 09/11/2016 17:40, Mark Struberg wrote:
>> Oki all
t;
> ...
> value="#{widgetBean.widgetList}">
> value="#{widget.subWidgets}">
> ...where are the sub widgets?
>
>
>
>
> Like i say if i loop through the widgets (or maybe the subwidgets as
> we
Hi Matthew!
Now I'm back on my notebook.
What transaction mechanism are you using? JTA or ResourceLocal?
And what technology to control the transactions? EJBs? CDI? Spring?
It boils down to be more a question about appliction architecture than about
OpenJPA, but still very important to cover.
Hi!
I sounds like you did hit the classic lazy loading issue. eclipselink opens a
connection again, but this is not specced. In Hibernate you will end up with a
LazyInitializationException.
It's not an OpenJPA issue but the way transactions work in JavaEE by default.
For JSF I recommend to not
Hi Gilbert!
the JPA-2.1 Converters are definitely on our List and we would be glad if you
would join us with the effort to implement this feature (and others).
I personally didn’t yet miss this feature because the JPA-2.1 Converters are a
bit limited to be honest.
I’d rather use the OpenJPA
Hi Vincenzo!
No worries, your english is fine.
The writeExternal is invoked to serialize away the entity. Whether the receiver
side gets just the normal entity fields (unenhanced so to say) or also the
_loaded and _dirty fields is a question of the configuration.
I usually use the following
?
$> javap -c target/classes/de/netversys/domain/Distribution.class | less
And check whether the class has a PersistenceCapable interface in the bytecode.
LieGrue,
strub
> On Thursday, 22 September 2016, 8:02, Mark Struberg
> <strub...@yahoo.de.INVALID> wrote:
> > Yes, i
And when u look at the stacktrace on this line:
>
> at de.netversys.domain.Distribution.pcProvideField(Distribution.java)
>
> you see a method which wouldnt be there if the class is not enhanced right?
>
> 2016-09-21 22:00 GMT+02:00 Mark Struberg <strub...@yahoo.de.invalid>:
Hi Marc!
Is the entity Distribution part of a supertype/subtype constellation aka
inheritance?
Does this class 'extends' something? And where do these classes reside?
LieGrue,
strub
> On Wednesday, 21 September 2016, 18:27, Marc Logemann
> wrote:
> > can
Good evening!
Please welcome Francesco Chicchiriccò as new Apache OpenJPA PMC member!
Francesco, txs for helping to push OpenJPA forward!
best regards,
the OpenJPA team
>problem is new somehow i did another upgrade from an older version to
>2.4.0 a few weeks ago.
>
>
>regards
>marc
>
>
>
>
>2016-09-10 9:48 GMT+02:00 Mark Struberg <strub...@yahoo.de.invalid>:
>
>Hi Marc!
>>
>>Can you please try with 2.4
Do you probably have a sample application or anything you can share e.g. on
github?
txs and LieGrue,
strub
> Am 24.08.2016 um 16:50 schrieb chris666 :
>
> I upgraded my java app to Open JPA 2.4.1 & Java 8 & im getting the error
> below. Previously I was on Open JPA 2.2.2
Hi Andrej!
I will try to give it a look in the following week.
Please ping back if there is no visible progress.
LieGrue,
strub
> On Wednesday, 24 August 2016, 3:10, Andrej Badinka
> wrote:
> > Hi all, I created an issue in openjpa jira:
>
depends on xx-ds
>
> Thanks.
>
> Regards
> Senthil Kumar Sekar
>
>
> From: Loganathan, Senthil <senthil.loganat...@sc.com>
> Sent: Thursday, May 12, 2016 12:13 PM
> To: Mark Struberg; users@openjpa.apache.org; Senthil
Do you have the same entities in multiple EARs or WARs on the same server?
I got similar sounding issues on servers which did not properly isolate the JPA
Metadata caches between different apps.
Trying to understand your exact scenario is imo the first step.
LieGrue,
strub
> Am 12.05.2016 um
; On 12/04/2016 16:11, Mark Struberg wrote:
>>> you are not interested in making the approach below more general -
>> 'not interested' is not the right word. Not on my personal list of
> important things for me personal - but happy to get patches!
>
> Sure :-)
I hope to find a bit time next week to merge over all the stuff from trunk into
the JPA-2.1 feature branch.
If anyone is interested to help then go on and shout out. I’ll try to apply as
fast as I can ;)
LieGrue,
strub
> Am 15.01.2016 um 14:53 schrieb RadeMartinovic :
>
>
Btw quick tip for creating patches. Please always create the patch directly
from the project root. Makes it a bit easier to apply.
txs and LieGrue,
strub
> Am 16.01.2016 um 09:43 schrieb Mark Struberg <strub...@yahoo.de>:
>
> I hope to find a bit time next week to merge ove
> Am 16.01.2016 um 09:47 schrieb Mark Struberg <strub...@yahoo.de>:
>
> Btw quick tip for creating patches. Please always create the patch directly
> from the project root. Makes it a bit easier to apply.
>
> txs and LieGrue,
> strub
>
>
>> Am 16.
Romain started the JPA-2.1 work but we might need a bit more hands on that.
I will also come back to openjpa in a few weeks (need to finish some other
projects) and can put some time into it again.
LieGrue,
strub
> Am 13.01.2016 um 14:43 schrieb RadeMartinovic :
>
> I
Hi Tom!
openjpa-2.2.3 is simply not yet released.
The latest released JPA-2.0 compatible version is 2.4.0.
It should contain all the fixes from 2.2.3 plus new features (e.g.
BooleanRepresentation) and further bug fixes.
LieGrue,
strub
> Am 02.10.2015 um 22:46 schrieb tom.edwards
>
Hi Henno,
big thanks for doing the tests and also for giving us the feedback!
We also use 2.4.0 in production already without any issues - well, at least
without any regressions ;)
LieGrue,
strub
> Am 21.09.2015 um 09:44 schrieb Henno Vermeulen :
>
> The documentation
Am 30.09.2015 um 16:55 schrieb Mark Struberg <strub...@yahoo.de>:
>
> working on this now.
> Will keep you updated.
>
> LieGrue,
> strub
>
>
>> Am 21.09.2015 um 23:06 schrieb Talden <tal...@gmail.com>:
>>
>> The OpenJPA pages on apache.org
.3.0 and say things like "The
> upcoming 2.4 release (trunk) is based off of the 2.3.x branch and will
> contain some additional features (TBD)"
>
> --
> Aaron Scott-Boddendijk
>
> On Tue, Sep 22, 2015 at 2:24 AM, Mark Struberg <strub...@yahoo.de> wrote:
>
>>
It is officially released. Maybe I/we forgot to update some site still?
Just point me to the page you are missing something on and I gonna fix it.
txs and LieGrue,
strub
> Am 21.09.2015 um 09:44 schrieb Henno Vermeulen :
>
> The documentation does list 2.4.0 as a
Probably some lazy loading which hits you?
When does the EntityManager get closed? You do not touch anything from the
entity before the EntityManager gets closed? In that case this might be
perfectly covered by the JPA spec.
Which form of enhancement do you use? build-time, classtransformer via
Why don’t you use a @ManyToMany relation?
LieGrue,
strub
Am 26.04.2015 um 17:57 schrieb Marco de Booij marco.developm...@debooy.eu:
I use Tomee 1.7.1 with openjpa version openjpa-2.4.0-nonfinal-1598334-r422266.
I have an entity auteurs and an entity boek. They have a ManyToMany relation
the value
Shall I report this as a bug or am I doing something wrong in my code?
I vote bug
On Thu, Apr 23, 2015 at 6:43 AM, Mark Struberg strub...@yahoo.de wrote:
Thanks Henno!
Not quite sure if this workaround is good enough or whether we should
try to solve this properly.
I plan
compliance..
2015-04-19 17:03 GMT+02:00 Mark Struberg strub...@yahoo.de:
It’s a great pleasure to call a VOTE for releasing Apache OpenJPA-2.4.0.
OpenJPA-2.4.0 implements the JPA-2.0 specification.
The staging repository can be found here:
https://repository.apache.org/content
Thanks Henno!
Not quite sure if this workaround is good enough or whether we should try to
solve this properly.
I plan to do a follow up release for 2.4.0 rather soonish. So thanks for your
test case.
Did you already look at the OpenJPA codebase? Are you interested in turning
this sample code
+1 nonbinding
So we _still_ miss at least 1 binding vote…
LieGrue,
strub
Am 19.04.2015 um 17:03 schrieb Mark Struberg strub...@yahoo.de:
It’s a great pleasure to call a VOTE for releasing Apache OpenJPA-2.4.0.
OpenJPA-2.4.0 implements the JPA-2.0 specification.
The staging repository
Hi!
The VOTE did pass with the following:
+1: Romain (nonbinding), Kevin, Rick, Albert, Mark (nonbinding)
No -1 nor +1
Will propagate the artifacts.
LieGrue,
strub
Am 19.04.2015 um 17:03 schrieb Mark Struberg strub...@yahoo.de:
It’s a great pleasure to call a VOTE for releasing Apache
It’s a great pleasure to call a VOTE for releasing Apache OpenJPA-2.4.0.
OpenJPA-2.4.0 implements the JPA-2.0 specification.
The staging repository can be found here:
https://repository.apache.org/content/repositories/orgapacheopenjpa-1000/
The Release Notes can be found in the file
Hi!
openjpa-2.4.0 is indeed targetting JPA-2.0.
I personally would like to target JPA-2.1 soon, but before that I would love
to see a few cleanup efforts being done.
E.g. cleaning up our bytecode parts and move all to xbean-asm5-shaded.
LieGrue,
strub
Am 06.04.2015 um 11:15 schrieb David
April 2015 12:17:00 Mark Struberg wrote:
Hi!
openjpa-2.4.0 is indeed targetting JPA-2.0.
I personally would like to target JPA-2.1 soon, but before that I would
love to see a few cleanup efforts being done. E.g. cleaning up our bytecode
parts and move all to xbean-asm5-shaded.
LieGrue
TomEE uses trunk builds.
2.3.x is not really used anymore.
Guess we should really establish a more feature driven release policy.
Currently it is really product driven. This is fine for 2.2.x but I think this
doesn’t scale well for future releases.
LieGrue,
strub
Am 10.03.2015 um 14:40
...@gmail.com
To: users users@openjpa.apache.org
Cc: Mark Struberg strub...@yahoo.de
Sent: Thursday, 5 December 2013, 15:35
Subject: Re: Auditor issue after upgrading to OpenJPA 2.3.0
Mark --
I'll also note that I'm having problems with the changes that were done
for
OPENJPA-2437
This is not known, but we moved the invocation of the auditing mechanism around
a bit.
There must be a JIRA which is tagged as 2.3.1.
Please create a new JIRA for it and we will take a look.
LieGrue,
strub
From: Harald Wellmann hwellmann...@gmail.com
To:
please note that trunk got moved to 2.0.4-SNAPSHOT.
LG,
strub
--
Albert Lee schrieb am Di., 19. Nov 2013 00:49 MEZ:
Nightly build can be found in
http://openjpa.apache.org/downloads-nightly.html
I followed the
...@gmail.com
To: users users@openjpa.apache.org; Mark Struberg strub...@yahoo.de
Sent: Friday, 15 November 2013, 18:15
Subject: Re: Vote for standard JPA jar in maven
CDDL is still not perfect and some apis are even LGPL (which is a complete
no-go).
CDDL? I thought that the javax.persistence
will try to find out what the underlying problem is.
LieGrue,
strub
From: Rick Curtis curti...@gmail.com
To: users users@openjpa.apache.org
Cc: Mark Struberg strub...@yahoo.de
Sent: Friday, 4 October 2013, 16:24
Subject: Re: OpenJPA 2.3.0 Release
Mark
for me to understand how much work is done in which place...
LieGrue,
strub
- Original Message -
From: Kevin Sutter kwsut...@gmail.com
To: users@openjpa.apache.org; Mark Struberg strub...@yahoo.de;
d...@openjpa.apache.org
Cc:
Sent: Monday, 30 September 2013, 18:31
Subject: Re
I can kick off all the maven parts of the release.
I'm not sure what else do we need in terms of readme and JISA release notes
housekeeping?
Is there a wiki page or any other documentation about it somewhere?
From my experience as Release Manager in other Apache projects I would have the
This happens most times if you have Cascade.PERSIST enabled. This makes your
1:n list a 'part' of your 'main entity'. The idea is that once you change a
part of your logical area you need to prevent concurring changes on the whole
area. Otherwise consistency cannot get guaranteed. Thus a touch
No, this works perfectly over here. You do not need to add any dependency at
all!
The only stuff I had to add is cobertura if you use code coverage reporting.
The reason is that cobertura enhances the classes with it's own interceptors
and openjpa fails to enhance if it cannot find those
Hi Andy!
the openjpa-maven-plugin does automatically add the compile classpath if you
use openjpa:enhance and the test-compile classpath if you use
openjpa:test-enhance.
And your attachments got eaten by the spam filter it seems ;)
LieGrue,
strub
- Original Message -
From:
JPA entities?
LieGrueZuRue
On 5 August 2012 19:52, Mark Struberg strub...@yahoo.de wrote:
Having code relying on @Entity is bitter so to say ;)
All JPA functions could also be added via XML, without having any
annotation on your entities...
Such code would btw also
throwing around the idea of removing the
subclassing support altogether since it can cause more issues than it
resolves... But, that's a whole separate discussion...
Kevin
On Wed, Aug 8, 2012 at 1:13 AM, Mark Struberg strub...@yahoo.de
wrote:
Kevin is right. I re-checked
for test classes there is an own test-enhance goal
LieGrue,
strub
- Original Message -
From: Chris Joysn joys...@gmail.com
To: users@openjpa.apache.org; Mark Struberg strub...@yahoo.de
Cc:
Sent: Wednesday, August 8, 2012 9:57 PM
Subject: Re: Annotations removed when enhancing
Having code relying on @Entity is bitter so to say ;)
All JPA functions could also be added via XML, without having any annotation on
your entities...
Such code would btw also not work in Hibernate if you use proxies. Becasue the
generated proxies don't have annotations neither.
LieGrue,
Hi!
You can use OpenJPAs openjpa-maven-plugin for doing build-time enhancement.
As I think WAS-6.1 comes with a OpenJPA version prior to 2.2.0, you would need
to use the 'old' plugin we hacked and hosted on codehaus:
http://mojo.codehaus.org/openjpa-maven-plugin/
From openjpa-2.2.0 on this is
for the programming model in your apps.
LieGrue,
strub
- Original Message -
From: José Luis Cetina maxtorz...@gmail.com
To: users@openjpa.apache.org; Mark Struberg strub...@yahoo.de
Cc:
Sent: Friday, May 4, 2012 4:58 PM
Subject: Re: OpenJPA vs EclipseLink
T hanks Mark, I'll be pendent for your
, May 4, 2012 4:27 PM
Subject: Re: OpenJPA vs EclipseLink
...or tests without your data...
On Thu, May 3, 2012 at 4:28 PM, Mark Struberg strub...@yahoo.de wrote:
or tests without any jdbc pool ;)
LieGrue,
strub
From: afryer apfr
Hi Andrew!
When I did my first evaluations for a new project 3 years ago. Back then I was
checking out the sources fo EclipseLink, Hibernate and OpenJPA.
EclipseLink just didn't cut it at all. From what I've heard, the Eclipse
community now rewrote a huge part of the code already, but they are
or tests without any jdbc pool ;)
LieGrue,
strub
From: afryer apfr...@hotmail.com
To: users@openjpa.apache.org
Sent: Thursday, May 3, 2012 11:27 PM
Subject: Re: OpenJPA vs EclipseLink
One thing to be aware of is if you see performance comparisons on the
good read, already retweeted it ;)
LieGrue,
strub
- Original Message -
From: Harald Wellmann hwellmann...@googlemail.com
To: users@openjpa.apache.org
Cc:
Sent: Monday, April 30, 2012 7:26 PM
Subject: Metamodel generation with Maven
Just for the record, metamodel generation
Hi Francesco!
If you use the openjpa-maven-plugin from OpenJPA itself then you don't need to
add any dependency!
The new one uses openjpa-kernel, etc directly and not the 1-in-all openjpa
(-all) bundle anymore.
Please try to remove the openjpa dependency as a first step.
ad logging:
There
Hi!
Best is to post your questions to the dev@openjpa.a.o list.
We will be happy to provide help as good as we can :)
We are sometimes also available on irc.freenode.net channel #openjpa
LieGrue,
strub
- Original Message -
From: machak m.milice...@onehippo.com
To:
are you still using ant or already using maven?
If you use maven, then have a look at the openjpa-maven-plugin [1].
LieGrue,
strub
[1] http://openjpa.apache.org/enhancement-with-maven.html
Please note that we need to tweak this section a bit. The dependency to openjpa
itself is not needed
There is a JDO-3.0 spec out there since almost a year now. I'm not sure if we
can/like to catch up.
Isn't there a pure JDO impl at db.apache.org which is up2date anyway?
LieGrue,
strub
- Original Message -
From: Michael Dick michael.d.d...@gmail.com
To: users@openjpa.apache.org;
regarding tomcat:
vi conf/catalina.properties
add the following line
shared.loader=${catalina.base}/webapps/lib/*.jar
then put all your shared classes into webapps/lib.
This is kind of an EAR scenario without EJBs ;)
The SharedClassLoader will become the parent of all WebappClassLoaders.
I also roughly remember that we even generate different bytecode (at least when
using compile time enhancement) depending on the persistence.xml version.
Safest bet is to use version 2.0.
Guess this was done to improve compatibility with older projects.
LieGrue,
strub
--- On Fri, 8/12/11, Rick
Hi!
I've now looked at your test code and I'm not sure if it really is expected to
work.
The JPA spec imo isn't very clear about exactly _when_ the @PreUpdate gets
called.
From the JPA-2.0 spec:
The PreUpdate and PostUpdate callbacks occur before and after the database
update operations to
Yes, I just mentioned it because in my case it made a _huge_ difference when
working with previously detached entities which got em.merged().
I don't know the exact scenario, but since EntityManagers are not Serializable,
there is detachment needed in a lot cases. At least if you need it also
Yes, I just mentioned it because in my case it made a _huge_ difference when
working with previously detached entities which got em.merged().
I don't know the exact scenario, but since EntityManagers are not Serializable,
there is detachment needed in a lot cases. At least if you need it also
It does keep track, but you might need to experiment a bit with your
persistence.xml. In my case (doing lots of detached work), I needed the
following settings:
property name=openjpa.DetachState
value=loaded(DetachedStateField=true)/
property name=openjpa.Compatibility
Hi Folks!
I also use auditing with OpenJPA:
http://struberg.wordpress.com/2010/07/31/howto-changelog-with-jpa/
but it currently only works with a patched OpenJPA 2.2.x version.
https://issues.apache.org/jira/browse/OPENJPA-1873
We fixed a few parts already, but the POST_LOAD_ON_MERGE isn't yet
Hi Jim!
I know it's a bit of a hack, but the openjpa-maven-plugin uses the compile
classpath of your project. So I'd say it's not really a 'bug'.
You should be able to prevent this side effect by adding a dependency to your
plugin section which contains such a logback-test.xml file with your
Hiho!
It seems that your Datasource or any other setting in your persistence.xml
needs some spring classes.
Please try to add a dependencies section with those dependencies directly to
the plugin section!
plugin
artifactIdopenjpa-maven-plugin...
...
dependencies
dependency
Hi!
I didn't yet use eclipse-3.6 but I was successfully able to use
openjpa-maven-plugin with eclpise-3.5 and idea 9.0 to 10.5.
Which openjpa-maven-plugin do you use? The one from codehaus, or our new one
over here from openjpa directly? They should basically be the same, but just in
case we
-maven-plugin. This was a change in m2e from
earlier versions which worked fine.
-=- Jerry
On May 29, 2011, at 6:17 AM, Mark Struberg [via OpenJPA]
wrote:
Hi!
I didn't yet use eclipse-3.6 but I was successfully
able to use openjpa-maven-plugin with eclpise-3.5 and idea
9.0
1 - 100 of 133 matches
Mail list logo