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. Th

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 loading

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 ma

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 e

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 'for

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 fiel

Re: Detach on cascade turns on phatonmly

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

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 used

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 fr

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 @Conve

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 sequen

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 on

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) inh

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 a

[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! O

[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: > > https://gitbox.apache.org/r

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 is

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 > : > > hi i tried

[ANNOUNCE] Welcome Will Dazey as OpenJPA committer!

2017-08-16 Thread Mark Struberg
Good morning ladies and gents! I'm glad to announce that Will has accepted our invitation to join the Apache OpenJPA project as a new committer! Will did already ship great patches and we are sure he will be a great addition to our team. Welcome Will! the Apache OpenJPA PMC :wq

[ANNOUNCE] Welcome Jody Grassel as Apache OpenJPA PMC member

2017-08-15 Thread Mark Struberg
Good afternoon ladies and gents! Jody Grassel has been involved with OpenJPA for many years. Based on that, the Apache OpenJPA project is glad to announce that Jody has accepted our invitation to join the OpenJPA Project Management Committee! Welcome Jody! best regards, the Apache OpenJPA comm

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 my first email > (https://openjpa.apache.org/buil

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 implementation on > the wa

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 : > > Hi, > > I'm facing a nast

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 been working on a OpenJPA Grad

[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
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 clear. The internal Entit

Re: fetching associations

2016-11-09 Thread Mark Struberg
... > 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 > well) it the

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. S

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 u

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 Va

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 > wrote: > > Yes, it contains the number of the field it ha

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

2016-09-21 Thread Mark Struberg
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 : >> MappedSuperclasses should not be any problem. At least if

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

2016-09-21 Thread Mark Struberg
; > >2016-09-21 20:15 GMT+02:00 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? >> >> >>L

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 somebody hint me where i need to

[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
ew 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 : > >Hi Marc! >> >>Can you please try with 2.4.0? >>Is the generated query the same or wi

Re: weird bug with order by (2.4.1)

2016-09-10 Thread Mark Struberg
Hi Marc! Can you please try with 2.4.0? Is the generated query the same or without the column? LieGrue, strub On Saturday, 10 September 2016, 2:14, Marc Logemann wrote: > > >Hi, > >i suspect i found a bug which has bad consequences on MariaDB not using an >index anymore. Lets take this JP

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 & Java 7. Note, the er

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: > https://issues.apache.org/jira/browse/OPENJPA-2639

Re: JPA 2.1 Support

2016-08-18 Thread Mark Struberg
, waiting for > the email. > Thank you. > Cheers,Roberto > From: Mark Struberg > To: users@openjpa.apache.org > Sent: Wednesday, August 17, 2016 11:35 PM > Subject: Re: JPA 2.1 Support > > Roberto, are you also subscribed to dev @ openjpa.apache.org? > We will f

[ANNOUNCE] SVN trunk is now OpenJPA-3.0.0!

2016-08-18 Thread Mark Struberg
Good evening! To clear the road for adressing JPA-2.1 we moved the current work from trunk to branches/2.4.x and upgraded trunk to version 3.0.0! Please take care where you commit things and for now also plz commit fixes to at least trunk and 2.4.x. Fixes which are important for even older bra

Re: JPA 2.1 Support

2016-08-17 Thread Mark Struberg
Roberto, are you also subscribed to dev @ openjpa.apache.org? We will follow up over there. txs and LieGrue, strub > Am 18.08.2016 um 07:27 schrieb Mark Struberg : > > Yes yes yes yes. > > So where do we start? > > We have a branch, done by Romain mostly, with lots of

Re: JPA 2.1 Support

2016-08-17 Thread Mark Struberg
Yes yes yes yes. So where do we start? We have a branch, done by Romain mostly, with lots of 2.1 groundwork. We have the jpa spec jar over in Geronimo. We need to make sure it's api compat with the official jar. And then we need a strategy when we like to move this to trunk and move the curre

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

2016-05-16 Thread Mark Struberg
ends on xx-ds > > Thanks. > > Regards > Senthil Kumar Sekar > > > From: Loganathan, Senthil > Sent: Thursday, May 12, 2016 12:13 PM > To: Mark Struberg; users@openjpa.apache.org; Senthil Kumar Sekar > Cc: openjpa-dev > Subject: RE:

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

2016-05-11 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 05

[ANNOUNCE] Welcome Francesco Chicchiriccò as Apache OpenJPA committer

2016-04-24 Thread Mark Struberg
Good morning! The Apache OpenJPA PMC is happy to announce that Francesco Chicchiriccò will join the project as a new committer! Welcome to OpenJPA, Francesco! the OpenJPA PMC

Re: UUID generators worth the effort?

2016-04-12 Thread Mark Struberg
For the application it's a String. JPA doesn't need to know whether this String represents a uuid or a random number you did yourself. It just needs to be unique! LieGrue, strub > On Tuesday, 12 April 2016, 17:08, Francesco Chicchiriccò > wrote: > > On 12/04/201

Re: UUID generators worth the effort?

2016-04-12 Thread Mark Struberg
please take a look - > incidentally, I have noticed that 2.4.1 appears as unreleased in JIRA > > Regards. > > > On 12/04/2016 09:22, Mark Struberg wrote: >> Hi Francesco! >> >> I usually let the PK be a String and create the UUID myself in Java. >> >> T

Re: UUID generators worth the effort?

2016-04-12 Thread Mark Struberg
Hi Francesco! I usually let the PK be a String and create the UUID myself in Java. The 'uuid' generator is a nice feature but it's not portable. And that might be the reason why some DBs are not really working with it - it's simply not that frequently used. There are 3 ways to create the UU

Re: Wrong order for delete of child when deleting parent

2016-04-04 Thread Mark Struberg
You might also do a normal em.remove() in the right order manually. Most probably no need to use a native query. LieGrue, strub > On Monday, 4 April 2016, 19:44, tvogel wrote: > > I don't have a solution but a workaround. In my service layer, I wrote > native sql queries to handle the del

Re: Wrong order for delete of child when deleting parent

2016-04-04 Thread Mark Struberg
one described below > and > the OPENJPA-1936 > > https://issues.apache.org/jira/browse/OPENJPA-1936 > > > > -Original Message- > From: Mark Struberg [mailto:strub...@yahoo.de.INVALID] > Sent: dimanche 3 avril 2016 12:56 > To: users@openjpa.apache.org &

Re: Wrong order for delete of child when deleting parent

2016-04-03 Thread Mark Struberg
Can you please try upgrading to 2.4.1? If you get the same issue in the newest version then it's much easier for us to reproduce. It would also help if you could provide a sample project which at least contains the entity constellation in question. It's much easier to discuss about such things

Re: @sqlresultsetmapping columns

2016-02-28 Thread Mark Struberg
How does your source code look like? Maybe the problem is not in the orm.xml but in how you created your combined pk? LieGrue, strub > Am 24.02.2016 um 22:43 schrieb ram : > > Hi,i have an entity called order which contains 10 columns and also > has embeded id(composite key) coulmns w

Fwd: [VOTE] Release OpenJPA-2.4.1

2016-02-16 Thread Mark Struberg
FYI, VOTE on OpenJPA-2.4.1 is ongoing. happy to get some feedback from users as well! LieGrue, strub > Anfang der weitergeleiteten Nachricht: > > Von: Mark Struberg > Betreff: [VOTE] Release OpenJPA-2.4.1 > Datum: 15. Februar 2016 um 09:17:25 MEZ > An: openjpa-de

Re: Project activity

2016-01-16 Thread Mark Struberg
> Am 16.01.2016 um 09:47 schrieb 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

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 : > > I hope to find a bit time next week to merge over all the stuff from trunk &

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 : > > So, this looks more l

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 fear that project has s

Re: Is OpenJPA 2.4.0 is released or not

2015-10-13 Thread Mark Struberg
Should be resolved now. Can you please try it out? txs and LieGrue, strub > Am 13.10.2015 um 09:26 schrieb Mark Struberg : > > And thanks for all the reporting you do - that is equally important as well! > > Will try to fix the other links as well and ping back in the evenin

Re: Is OpenJPA 2.4.0 is released or not

2015-10-13 Thread Mark Struberg
it seems > that the source download page is bugged. > > > Thanks for the hard work you are doing! > > John > >> -Original Message- >> From: Mark Struberg [mailto:strub...@yahoo.de] >> Sent: Montag, 12. Oktober 2015 22:42 >> To: users@openjpa.

Re: Is OpenJPA 2.4.0 is released or not

2015-10-12 Thread Mark Struberg
Mon, Oct 12, 2015 at 5:58 PM, Boblitz John > wrote: > >> Hello, >> >> Maybe I'm just blind, but I do not see a link for 2.4.0 on the >> download page (http://openjpa.apache.org/downloads.html). >> >> Regards, >> >> John >> >

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 > : > > I

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 does list 2.4.0 as a rel

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 : > > working on this now. > Will keep you updated. > > LieGrue, > strub > > >> Am 21.09.2015 um 23:06 schrieb Talden : >> >> The OpenJPA pages on apache.org (http://openjpa.apache.org/) are the >> obvi

Re: Is OpenJPA 2.4.0 is released or not

2015-09-30 Thread Mark Struberg
> 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 wrote: > >> It is officially released. Maybe I/we forgot to up

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 release so I think they just f

Re: Incorrect import range for javax.transaction makes openjpa incompatible to jta 1.2

2015-08-20 Thread Mark Struberg
Hi Christian! JPA-2.0 is specified to use JTA-1.1. Otoh there are just a few additional Classes in there and the rest remained unchanged. Thus it’s imo fine to include this in the import definition. I have a few more things on my list which I like to ship anyway, so I can do a 2.4.1 release in

Re: Question regarding "constant" parameter replacement in JPQL

2015-07-21 Thread Mark Struberg
Oh gosh, just found the following which gets executed _every_ time: private static boolean isOraclePreparedStatement(Statement stmnt) { try { return Class.forName("oracle.jdbc.OraclePreparedStatement"). isInstance(stmnt); } catch (Exception e) { return false;

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 : > > 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 > through the entity a

Re: [VOTE] Release Apache OpenJPA-2.4.0

2015-04-23 Thread Mark Struberg
2.1 compliance.. > > > > 2015-04-19 17:03 GMT+02:00 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

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

2015-04-23 Thread Mark Struberg
5 15:42 > Aan: users > Onderwerp: Re: criteria API generates a parameter for literal in group by but > does not provide 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 w

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] [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 : > > It’s a great pleasure to call a VOTE for releasing Apache Open

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 : > > 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 stag

[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 openjpa-proj

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

2015-04-06 Thread Mark Struberg
with the > 2.4 jar installed. > > David > > On Monday 06 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 >> lo

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 G

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 schri

Re: OpenJPA support for JPA 2.1: when?

2015-01-09 Thread Mark Struberg
I definitely like to start working on OpenJPA again. Just give me a week to again do a 'warm up'. It's really needed to dig into the code for a week or so before you start to hack. There are just so many layers of indirection which you need to understand and you possibly can break... My current

Re: Auditor issue after upgrading to OpenJPA 2.3.0

2013-12-05 Thread Mark Struberg
gt; To: users > Cc: Mark Struberg > 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 wit

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 >To: users@openjpa.apache.or

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 >apache-openjpa-2.3.0-SNAPSHOT-source.zip

Re: Vote for standard JPA jar in maven

2013-11-15 Thread Mark Struberg
Rick Curtis >To: users ; Mark Struberg >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

Re: Vote for standard JPA jar in maven

2013-11-14 Thread Mark Struberg
The problem is usually not vendor neutrality but the license. CDDL is still not perfect and some apis are even LGPL (which is a complete no-go). Thus using our very own clean room engineered org.apache.geronimo.spec.* API jars is still the safest bet. LieGrue, strub - Original Message -

Re: Immutable list in entity

2013-10-22 Thread Mark Struberg
Lists we get from query.getResultList() are of course immutable. But if I have an entity which has a @ElementCollection or a @OneToMany List then those imo should be mutable. Regardless whether in attached or detached state.. It is obvious for @ElementCollections but also for e.g. @OneToMany

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 >To: users >Cc: Mark Struberg >Sent: Friday, 4 October 2013, 16:24 >Subject: Re: OpenJPA 2.3.0 Release > > >Mark - > >I reopened

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 > To: users@openjpa.apache.org; Mark Struberg ; > d...@openjpa.apache.org > Cc: > Sent: Monday, 30 September 2013, 18:31 > Subject: Re: OpenJPA 2.

Re: Entitiy not enhanced

2013-09-28 Thread Mark Struberg
If you like to use build time enhancement and use Apache Maven, then I suggest to use the openjpa-maven-plugin. You can find a sample usage of it here: https://github.com/struberg/lightweightEE/blob/master/backend-api/pom.xml I've also written a small blog post about how the different JPA strag

Re: OpenJPA 2.3.0 Release

2013-09-28 Thread Mark Struberg
I've now created the 2.3.x branch for preparing the release. If you find any showstoppers in trunk then please think about pinging me. LieGrue, strub - Original Message - > From: Kevin Sutter > To: users@openjpa.apache.org; Mark Struberg > Cc: > Sent: Monday, 23 S

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 follo

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 o

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 classes

  1   2   >