Re: Loading relations

2023-04-16 Thread Mark Struberg
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.

Re: OpenJPA 3.2.0 with Java 16

2021-09-30 Thread Mark Struberg
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.

Re: please help with untime trouble while loading XML (org.xml.sax.SAXException)

2021-03-18 Thread Mark Struberg
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

Re: CriteriaUpdate/CriteriaDelete support?

2020-12-28 Thread Mark Struberg
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

[ANN] Apache OpenJPA-3.1.2 released

2020-09-07 Thread Mark Struberg
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

Re: Delimited identifiers issue

2020-05-19 Thread Mark Struberg
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

Re: PESSMISTIC_READ takes out exclusive lock on Postgres

2020-02-24 Thread Mark Struberg
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

Re: mysql @Column unique

2019-11-18 Thread Mark Struberg
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

Re: Detach on cascade turns on phatonmly

2019-07-25 Thread Mark Struberg
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

Re: Detach on cascade turns on phatonmly

2019-07-18 Thread Mark Struberg
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

Re: using different datasource during junit tests

2019-02-13 Thread Mark Struberg
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

Re: @Converter(autoApply=true)

2019-02-07 Thread Mark Struberg
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

Re: OpenJPA issues black hole

2019-01-20 Thread Mark Struberg
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 >

[DISCUSS] end support for OpenJPA-1.x?

2019-01-07 Thread 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

Re: deleting openjpa_sequence_table

2019-01-05 Thread Mark Struberg
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

Re: openjpa indexes

2019-01-02 Thread Mark Struberg
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

Re: OpenJPA issues black hole

2019-01-01 Thread Mark Struberg
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

Re: OpenJPA2.3.0 - Fail to find object with multiple collection + reverse mapping of polymorphic objects + EAGER-FETCHING

2018-11-03 Thread Mark Struberg
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)

Re: Primary key string ids are stripped

2018-10-27 Thread Mark Struberg
'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

[ANNOUNCE] master branch in GIT

2018-10-15 Thread Mark Struberg
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!

[ANNOUNCE] The Apache OpenJPA source code repository has been switched to GIT

2018-10-12 Thread Mark Struberg
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: > >

Re: clone object

2018-07-27 Thread Mark Struberg
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

Re: native query

2017-09-08 Thread Mark Struberg
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 >

Re: JPA criteria

2017-07-23 Thread Mark Struberg
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

Re: Problem with EntityExistsException

2017-04-24 Thread Mark Struberg
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.

Re: JPA 2.1

2017-02-14 Thread Mark Struberg
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

Re: java.lang.NoSuchMethodError: ....AggregationEntity.pcGetManagedFieldCount()

2017-02-08 Thread Mark Struberg
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 : > >

Re: Request for gradle equivalent to ant script for Enahncer

2017-01-18 Thread Mark Struberg
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

[ANNOUNCE] Welcome Christian Schneider as new OpenJPA committer

2016-12-05 Thread Mark Struberg
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

Re: fetching associations

2016-11-14 Thread Mark Struberg
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

Re: fetching associations

2016-11-09 Thread Mark Struberg
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

Re: fetching associations

2016-11-02 Thread Mark Struberg
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.

Re: fetching associations

2016-11-01 Thread Mark Struberg
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

Re: OpenJPA and TomEE 7.0.1 - 2.1 spec

2016-10-22 Thread Mark Struberg
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

Re: Null field not persisted for Dates

2016-10-16 Thread Mark Struberg
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

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Mark Struberg
? $> 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

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-22 Thread Mark Struberg
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>:

Re: trying to run JPA Console inside Intellij IDEA results in this....

2016-09-21 Thread Mark Struberg
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

[ANNOUNCE] Welcome Francesco Chicchiriccò as new OpenJPA PMC member

2016-09-15 Thread Mark Struberg
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

Re: weird bug with order by (2.4.1)

2016-09-11 Thread Mark Struberg
>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

Re: Open JPA: MetaDataException After upgrading to Open JPA 2.4.1 & Java 8

2016-08-24 Thread Mark Struberg
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

Re: OptimisticLock on Partitioned tables

2016-08-23 Thread Mark Struberg
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: >

Re: Open JPA Entity Loading issue due to failure in Enhancing at run time.

2016-05-17 Thread Mark Struberg
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

Re: Open JPA Entity Loading issue due to failure in Enhancing at run time.

2016-05-12 Thread Mark Struberg
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

Re: UUID generators worth the effort?

2016-04-13 Thread Mark Struberg
; 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 :-)

Re: Project activity

2016-01-16 Thread Mark Struberg
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 : > >

Re: Project activity

2016-01-16 Thread Mark Struberg
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

Re: Project activity

2016-01-16 Thread Mark Struberg
> 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.

Re: Project activity

2016-01-14 Thread Mark Struberg
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

Re: OpenJPA openjpa-maven-plugin version 2.2.3 missing in maven central

2015-10-06 Thread Mark Struberg
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 >

Re: Is OpenJPA 2.4.0 is released or not

2015-09-30 Thread Mark Struberg
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

Re: Is OpenJPA 2.4.0 is released or not

2015-09-30 Thread Mark Struberg
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

Re: Is OpenJPA 2.4.0 is released or not

2015-09-30 Thread Mark Struberg
.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: > >>

Re: Is OpenJPA 2.4.0 is released or not

2015-09-21 Thread Mark Struberg
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

Re: Service returns object, but nothing is received unless toString is called!

2015-07-08 Thread Mark Struberg
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

Re: Mapping a Join Table with Additional Columns

2015-04-27 Thread Mark Struberg
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

Re: criteria API generates a parameter for literal in group by but does not provide the value

2015-04-23 Thread Mark Struberg
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

Re: [VOTE] Release Apache OpenJPA-2.4.0

2015-04-23 Thread Mark Struberg
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

Re: criteria API generates a parameter for literal in group by but does not provide the value

2015-04-23 Thread Mark Struberg
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

Re: [VOTE] Release Apache OpenJPA-2.4.0

2015-04-22 Thread Mark Struberg
+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

Re: [VOTE] [RESULT] Release Apache OpenJPA-2.4.0

2015-04-22 Thread Mark Struberg
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

[VOTE] Release Apache OpenJPA-2.4.0

2015-04-19 Thread Mark Struberg
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

Re: Which version of JPA (2.0 or 2.1) does openjpa 2.4 support?

2015-04-06 Thread Mark Struberg
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

Re: Which version of JPA (2.0 or 2.1) does openjpa 2.4 support?

2015-04-06 Thread Mark Struberg
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

Re: Java 8/Java 7 end of life

2015-03-10 Thread Mark Struberg
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

Re: Auditor issue after upgrading to OpenJPA 2.3.0

2013-12-05 Thread Mark Struberg
...@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

Re: Auditor issue after upgrading to OpenJPA 2.3.0

2013-11-27 Thread Mark Struberg
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:

AW: Re: OpenJPA 2.3.0-SNAPSHOT sources not available in maven

2013-11-19 Thread Mark Struberg
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

Re: Vote for standard JPA jar in maven

2013-11-15 Thread Mark Struberg
...@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

Re: OpenJPA 2.3.0 Release

2013-10-04 Thread Mark Struberg
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

Re: OpenJPA 2.3.0 Release

2013-10-01 Thread Mark Struberg
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

Re: OpenJPA 2.3.0 Release

2013-09-22 Thread Mark Struberg
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

Re: Why is parent version incremented on update of child entity?

2012-12-10 Thread Mark Struberg
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

Re: maven-openjpa-plugin ClassLoader issues?

2012-09-04 Thread Mark Struberg
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

Re: maven-openjpa-plugin ClassLoader issues?

2012-08-30 Thread Mark Struberg
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:

Re: Annotations removed when enhancing?

2012-08-08 Thread Mark Struberg
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

Re: Annotations removed when enhancing?

2012-08-08 Thread Mark Struberg
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

Re: Annotations removed when enhancing?

2012-08-08 Thread Mark Struberg
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

Re: Annotations removed when enhancing?

2012-08-05 Thread Mark Struberg
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,

Re: OpenJPA enhancer or load-time weaver was not run..

2012-06-21 Thread Mark Struberg
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

Re: OpenJPA vs EclipseLink

2012-05-09 Thread Mark Struberg
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

Re: OpenJPA vs EclipseLink

2012-05-04 Thread Mark Struberg
, 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

Re: OpenJPA vs EclipseLink

2012-05-03 Thread Mark Struberg
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

Re: OpenJPA vs EclipseLink

2012-05-03 Thread Mark Struberg
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

Re: Metamodel generation with Maven

2012-04-30 Thread Mark Struberg
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

Re: Using 2.2.0-SNAPSHOT maven plugin

2012-01-13 Thread Mark Struberg
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

Re: ANN: OpenJPA Intellij plugin

2012-01-08 Thread Mark Struberg
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:

Re: PCEnhancer / PCEnhancerTask should take in class path

2011-12-27 Thread Mark Struberg
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

Re: [DISCUSS] JDO usage end-of-life?

2011-10-11 Thread Mark Struberg
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;

Re: openJPA dependcies with latest openJPA-2.1.x and javax.persistance.PersistanceProvider / javaee-apo

2011-08-19 Thread Mark Struberg
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.

Re: Possibility to return detached objects from a query?

2011-08-14 Thread Mark Struberg
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

Re: Audit log with OpenJPA

2011-07-27 Thread Mark Struberg
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

Re: Audit log with OpenJPA

2011-07-19 Thread Mark Struberg
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

Re: Audit log with OpenJPA

2011-07-19 Thread Mark Struberg
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

Re: Audit log with OpenJPA

2011-07-16 Thread Mark Struberg
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

Re: Audit log with OpenJPA

2011-07-07 Thread Mark Struberg
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

Re: OpenJPA maven plugin configuration

2011-07-01 Thread Mark Struberg
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

Re: AW: openjpa build time enhance using maven plugin DOESN'T WORK

2011-06-07 Thread Mark Struberg
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

Re: Enhancement under Eclipse Helios

2011-05-29 Thread Mark Struberg
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

Re: Enhancement under Eclipse Helios

2011-05-29 Thread Mark Struberg
-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   2   >