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

2016-09-22 Thread Marc Logemann
from Jetbrains IDEA IDE. 2016-09-22 21:59 GMT+02:00 Marc Logemann <marc.logem...@gmail.com>: > Compiled from "Distribution.java" > > public class de.netversys.domain.Distribution extends > de.netversys.domain.AbstractEntity > implements org.apache.openjpa.enhanc

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

2016-09-22 Thread Marc Logemann
class. The fild > numbers get > > generated during enhancement. > > > > LieGrue, > > Strub > > > > > >> Am 21.09.2016 um 23:25 schrieb Marc Logemann > > <marc.logem...@gmail.com>: > >> > >> And when u look a

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

2016-09-21 Thread Marc Logemann
es should not be any problem. At least if it got enhanced > as well. Are you missing this probably? > > LieGrue, > strub > > > > On Wednesday, 21 September 2016, 21:57, Marc Logemann < > marc.logem...@gmail.com> wrote> > >Hi, > > > > > >

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

2016-09-21 Thread Marc Logemann
y problem. At least if it got enhanced > as well. Are you missing this probably? > > LieGrue, > strub > > > > On Wednesday, 21 September 2016, 21:57, Marc Logemann < > marc.logem...@gmail.com> wrote> > >Hi, > > > > > >yeah. Every entity extends Ab

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

2016-09-21 Thread Marc Logemann
s 'extends' something? And where do these classes reside? > > > LieGrue, > strub > > > > > > > On Wednesday, 21 September 2016, 18:27, Marc Logemann < > marc.logem...@gmail.com> wrote: > > > can somebody hint me where i need to

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

2016-09-21 Thread Marc Logemann
can somebody hint me where i need to look out for? Quite weird message [2016-09-21 18:24:13] org.apache.openjpa.persistence.ArgumentException: Errors encountered while resolving metadata. See nested exceptions for details. [2016-09-21 18:24:13] java.lang.RuntimeException:

weird bug with order by (2.4.1)

2016-09-09 Thread Marc Logemann
Hi, i suspect i found a bug which has bad consequences on MariaDB not using an index anymore. Lets take this JPAQL: select d from Distribution d join fetch d.distributionContainerList where d.client = ?1 and d.deleted = ?2 order by d.oid desc My Distribution entity is quite big when it comes to

Re: [VOTE] Release Apache OpenJPA-2.4.0

2015-04-23 Thread Marc Logemann
Hi, hoped for JPA 2.1 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:

MariaDB vs. MySQL

2014-07-24 Thread Marc Logemann
Hi, i am fighting weird issues with an openjpa application on MariaDB while all these are non existant on MySQL. Things like fetch join are just different or better said with openjpa 2.2.0 and MariaDB problematic in some JPQLs. I even see different SQLs being created from the same JPAQL Queries.

Re: behavior change from 2.1.0 to 2.2.0 on persist

2014-06-03 Thread Marc Logemann
On Mon, Jun 2, 2014 at 9:53 AM, Marc Logemann marc.logem...@gmail.com wrote: Kevin, thanks for fast feedback. To your questions: 1) of course we could do the em.find() and do it the way it should be done ;-) 2) no, we have not tried using em.merge(), this would be an option we

behavior change from 2.1.0 to 2.2.0 on persist

2014-06-02 Thread Marc Logemann
Hey, we recently switched to 2.2.0 (cant go higher because we use Java8) and we found a change in behavior. Asumme we created a new Entity which looks like this: Person.java -- int oid String name CustomerType adress we created the object like so: Person p = new Person();

Re: behavior change from 2.1.0 to 2.2.0 on persist

2014-06-02 Thread Marc Logemann
://issues.apache.org/jira/browse/OPENJPA-1896 [2] http://openjpa.apache.org/builds/2.2.0/apache-openjpa/RELEASE-NOTES.html On Mon, Jun 2, 2014 at 7:48 AM, Marc Logemann marc.logem...@gmail.com wrote: Hey, we recently switched to 2.2.0 (cant go higher because we use Java8) and we found a change

Re: not a recognized entity

2012-10-01 Thread Marc Logemann
much sense what OpenJPA wants to tell me --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 01.10.2012 um 18:22 schrieb Rick Curtis curti...@gmail.com: Marc - For giggles, can you try to run with the property openjpa.MetaDataRepository=Preload=true

not a recognized entity

2012-09-30 Thread Marc Logemann
for enhancing and stuff. What can i do to debug this further? Getting low on ideas how to debug it Thanks. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: not a recognized entity

2012-09-30 Thread Marc Logemann
know if this solves all of my questions but i think i am getting closer to the answer --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 30.09.2012 um 22:30 schrieb Marc Logemann l...@logemann.org: Hi, after hours of researching i am lost. Perhaps someone

Re: not a recognized entity

2012-09-30 Thread Marc Logemann
puzzled. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 30.09.2012 um 23:24 schrieb Marc Logemann l...@logemann.org: Hi, just read some more about it. Now i know that Spring has nothing to do with submitting the persitent classes list to OpenJPA. It seems

update null relation on merge()

2012-08-24 Thread Marc Logemann
sensible way to tell OpenJPA to merge null relations differently? --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: update null relation on merge()

2012-08-24 Thread Marc Logemann
1:1 relations are eager by default And eager could be only a loading issue. I have a merge issue here. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 24.08.2012 um 11:28 schrieb Boblitz John john.bobl...@bertschi.com: Good Morning, I had this often

Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-27 Thread Marc Logemann
Then i dont get the referencedColumnName Feature, because the db field of the @ID fields doesnt need to be declared, this JPA does already know. I will migrate it nevertheless and leave out the referencedColumnName completely. --- regards Marc Logemann http://www.logemann.org http

org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-22 Thread Marc Logemann
(ROPStoreManager.java:57) at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:1027) at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:985) ... 86 more --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-22 Thread Marc Logemann
debugging turned on, its not likely that i fully understand whats wrong. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 22.12.2011 um 17:00 schrieb Kevin Sutter: Hi Marc, I'm not seeing anything wrong with your object model definition. But, it definitely looks

weird java.util.EmptyStackException

2011-12-18 Thread Marc Logemann
) at org.apache.openjpa.kernel.ExpressionStoreQuery.newDataStoreExecutor(ExpressionStoreQuery.java:179) at org.apache.openjpa.kernel.QueryImpl.createExecutor(QueryImpl.java:749) ... 62 more --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

weird JDO Exception when using OpenJPA 2 Enhancer

2011-10-07 Thread Marc Logemann
commented out. Everything works fine as it did years before i am clueless.. Thanks for any pointer. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: weird JDO Exception when using OpenJPA 2 Enhancer

2011-10-07 Thread Marc Logemann
i stopped using years ago ;-) --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 07.10.2011 um 19:01 schrieb Marc Logemann: Hi, something weird is going on. i added a new directory in my ANT task like this: openjpac config propertiesFile=web/META

Re: Like issue with @Embedded attribute with Spring Data JPA

2011-08-29 Thread Marc Logemann
thanks Pinaki. The spring guys finally admitted that its their fault ... your answer helped a lot to convince them ;-) I somehow knew it before but my voice was not loud enough --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 29.08.2011 um 22:38 schrieb Pinaki

IntId cannot be cast to ContainerShipment with FetchType.EAGER

2011-08-29 Thread Marc Logemann
) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) --- regards Marc Logemann

Re: IntId cannot be cast to ContainerShipment with FetchType.EAGER

2011-08-29 Thread Marc Logemann
and everything is fine but somehow i need at least one n relation. Never experienced this Here is my back reference in OrderPosition. @ManyToOne @JoinColumn(name = con_ship_id, referencedColumnName = id) ContainerShipment containerShipment; still confused. --- regards Marc Logemann http

Like issue with @Embedded attribute with Spring Data JPA

2011-08-28 Thread Marc Logemann
. But if i can help by providing some variables values or something, i am willing to help solving this. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: Like issue with @Embedded attribute with Spring Data JPA

2011-08-28 Thread Marc Logemann
, next.getJavaType()); } attName has the value pickBarcode.orderId in my case. Do you expect a object-graph string in this method? If yes, it should work because pickBarcode.orderId is in fact part of my AlphaScan Class. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am

Re: same jpa query generates different SQLs

2011-04-07 Thread Marc Logemann
Hi, the issue is: https://issues.apache.org/jira/browse/OPENJPA-1955 Seems nobody cared so far ;-) Feel free to vote up (if this is possible). Greetings to Fabian Lange btw. Just noticed you both work for the same company. He knows me from Nokia-Siemens back then. --- regards Marc Logemann

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-25 Thread Marc Logemann
great News! --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 25.03.2011 um 15:56 schrieb Rick Curtis: Marc - This problem is fixed[1] in the 2.1.x stream and trunk. [1] http://issues.apache.org/jira/browse/OPENJPA-1965 Thanks, Rick On Thu, Mar 24

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-24 Thread Marc Logemann
=domain.myweirdpackage/ /target 3) put at least one Entity in domain package (parent of myweirdpackage) 4) run the MetaModel compiling step Does this help? --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.03.2011 um 20:45 schrieb Rick Curtis: Marc - Give

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-24 Thread Marc Logemann
Hi, i am quite sure that there were a lot more jars when i had the single ALL dependency in my ivy setup. Dont have the time to prove right now. In fact one dont need the service file when using the -processor flag in javac. --- regards Marc Logemann http://www.logemann.org http

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-24 Thread Marc Logemann
you are late. We basically figured out all the issues. I also presented a fix and Rick supplied a patched jar and hopefully this fix will make it into the next 2.1 release. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 24.03.2011 um 14:25 schrieb Pinaki Poddar

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-24 Thread Marc Logemann
Am 24.03.2011 um 17:27 schrieb Michael Dick: On Thu, Mar 24, 2011 at 10:40 AM, Marc Logemann l...@logemann.org wrote: you are late. Not really. The code was written two years ago, with a programmatic javac compiler for debugging ;) thats not what i meant. I meant in following our

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
the usual clutter which comes out anyway. Debugging is also not that easy within an ANT process. Perhaps someone give me an hint how to proceed. I really dont want to recompile the AnnotationProcessor6 class. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
and i would like to see a logging for that to and a re-throw after that. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.03.2011 um 15:51 schrieb Rick Curtis: Marc - Can you narrow down the Entity which is having the problem so we can write a unit test

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
Correction: With my program, i get a result of course because i dont leave the process on error ;-) But this is the solution. This is NOT the solution i meant. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.03.2011 um 16:38 schrieb Marc Logemann: Puuuh

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
is something which one need to research. Thats definitely something in the javax.annotation.processing area of the JDK. But there must be a reason that getRootElements() returns Element and not TypeElement ;-) --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.03.2011

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.03.2011 um 16:55 schrieb Rick Curtis: Yes that seems reasonable. I'll get that taken care of sometime this afternoon. I'd like to get another JIRA opened up to investigate the JAXB packageElements problem

Re: MetaModel creation with -Aopenjpa.generate=true

2011-03-23 Thread Marc Logemann
+1 for the patch on AnnotationProcessor6 for the 2.1.x release line. Of course this would make my life easier. I could drop my own variant. I always like using framework classes instead of patched-own-versions. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am

Re: same jpa query generates different SQLs

2011-03-03 Thread Marc Logemann
Hi, created an issue for it. Thanks for your ideas to make the cache disablement query based --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 02.03.2011 um 19:10 schrieb Jeremy Bauer: Marc, I'm glad that worked for you. You could actually just exclude

same jpa query generates different SQLs

2011-03-02 Thread Marc Logemann
:00.001, (int) 2] I have completely no clue what to do now ;-) Thanks for input. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: same jpa query generates different SQLs

2011-03-02 Thread Marc Logemann
if you want I would like to see this solved because disabling the cache means decreasing the performance somehow right? --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 02.03.2011 um 17:31 schrieb Jeremy Bauer: Hi Marc, I'm wondering if this isn't caused

Re: missing openjpa-src.jar

2011-03-01 Thread Marc Logemann
Marc Logemann http://www.logemann.org http://www.logentis.de Am 01.03.2011 um 19:00 schrieb Michael Dick: Just read up (a little) on ivy. My comments about openjpa-persistence-jdbc were assuming it would pull the same dependencies as maven - which might not be the case. This: dependency org

missing openjpa-src.jar

2011-02-28 Thread Marc Logemann
Hi, i am really missing a src jar. And while i am thinking about it. it would be nice if this would be shipped on request via Maven Reps as well. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: missing openjpa-src.jar

2011-02-28 Thread Marc Logemann
Ah sorry. Used the wrong maven dependency in my ivy setup. But still wondering where i can find a documention about the various parts of openjpa you can get via Maven and its meanings. Right now i am in trial and error mode which of them i really need --- regards Marc Logemann http

join fetch doesnt work as expected

2011-02-22 Thread Marc Logemann
-- orderPositions When doing this query, i would expect that the orderPositions are attached but they are null (order is attached to the box as expected but thats 1:1) . I checked this right after the query.getResultList() call. What am i missing here? thanks for infos. --- regards Marc Logemann http

Re: CURRENT_DATE and OpenJPA 2

2010-09-23 Thread Marc Logemann
Thx for the property hint. Should i file a bug because of CURRENT_DATE ? Cant think that this doesnt work because this would be quite a killer bug right? :-) --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 23.09.2010 um 15:34 schrieb Michael Dick: Hi Marc

OpenJPA 1.2.x - weird inverse 1:n problem

2010-09-16 Thread Marc Logemann
mappings as well. Whats the problem here? Thanks. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: OpenJPA 1.2.x - weird inverse 1:n problem

2010-09-16 Thread Marc Logemann
()) { dAddress.setOrder(order); } Looks weird because i thought the provider can do this magic for me :-) --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 16.09.2010 um 15:43 schrieb Marc Logemann: Hi, i am getting crazy. Hope someone can point me

Re: entities not detected properly in JUnit Test case (OpenJPA 1.2.2)

2010-09-07 Thread Marc Logemann
runtime mode? --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 06.09.2010 um 23:26 schrieb Rick Curtis: So why does OpenJPA fail on registering Entities? The problem is that when you don't list your entities, OpenJPA doesn't know that the alias 'DP_PLZ_DA

re-attach entity and then persisting doesnt work

2009-12-15 Thread Marc Logemann
Hi, with latest stable OpenJPA i have a problem which might be there because of misunderstanding on my side. For instance take these PC class: Class A { public int oid; public String name; public B classB; } Class B { public int oid; public String name; } Now my appCode:

slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
performance problems. Does anyone have a hint where i can look out for? thanks. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
small correction : public class SomeDao { @SuppressWarnings(unchecked) public Object getMetaData(Class clazz, long oid) { Object o = em.find(clazz, oid); return o; } .. } CALLER: Object o = someDao.getMetaData(Foo.class, 1); --- regards Marc Logemann http

Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
Hi, i found out that some one-to-one relations in the Superclass added some heavy performance penalties. I ve not seen it in the SQL logs though. Perhaps i missed it. Cant comment on the detachment. It seems that its not the problem at all in my case. --- regards Marc Logemann http

marked for Rollback only problem

2009-12-03 Thread Marc Logemann
) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) ... 34 more -- Marc Logemann - LOGENTIS GmbH geschäftsführender Gesellschafter Westerbreite 7 - 49084 Osnabrück Tel. +49 (0)541 - 80049791

Re: inverse OneToMany relation - getting weird

2009-11-15 Thread Marc Logemann
cant answer your question because i am not that deep into the whole JPA topic (from an internal dev standpoint) but i will try the InverseManger with my test classes to see what happens. I will report back --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Would

Re: inverse OneToMany relation - getting weird

2009-11-14 Thread Marc Logemann
stuff so that i can fiddle around with various mappings in a short timeframe w/o boostrapping my J2EE app. Again, thanks a lot for your help. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 13.11.2009 um 19:09 schrieb Michael Dick: Hi Marc, The example I sent

Re: Detached entities, version attribute and optimistic concurrency control

2009-11-14 Thread Marc Logemann
HTTPSession. We just speak of a CRUD based application where you are just on the way modifying a record dont you? How big can the object model for that specific GUI can be? After that you can easily remove the detached entities from the session. --- regards Marc Logemann http

inverse OneToMany relation - getting weird

2009-11-13 Thread Marc Logemann
but it did persist childs, which is somehow weird. So whatever i do, i never get a fully persisted graph with correct FK values. Can anyone give me a hint what i am doing wrong here? Thanks a lot. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: inverse OneToMany relation - getting weird

2009-11-13 Thread Marc Logemann
. It simply cant be so hard and uncommon to make an inverse OneToMany with a FK field in the child table. I googled for hours and all example i ve found just dont work. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 13.11.2009 um 17:17 schrieb Michael Dick: Hi Marc

Re: inverse OneToMany relation - getting weird

2009-11-13 Thread Marc Logemann
on that one. Appreciate that. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 13.11.2009 um 18:27 schrieb Michael Dick: Hi Marc, Are you setting the relationship for both the Father and Child entities? I see the behavior you describe if I do this : Father f

Re: strange JPA Enhance stack

2009-05-19 Thread Marc Logemann
or something. The root cause would be of course the SERP exception. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 18.05.2009 um 16:29 schrieb Rick Curtis: -Marc Any luck with the suggestion that David made? David Beer-2 wrote: On Sat, 16 May 2009 15:32:36 +0200

Re: strange JPA Enhance stack

2009-05-19 Thread Marc Logemann
things. Its hard to track infos on maillists over time. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 19.05.2009 um 14:53 schrieb Michael Dick: Hi Marc, Sounds like an unchecked exception thrown by Serp and we could be a bit friendlier about how we handle

Re: strange JPA Enhance stack

2009-05-19 Thread Marc Logemann
Craig, my intention was not to rant against SERP :-) I already filed a JIRA. I will report things there if i see something new during my tests... --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 19.05.2009 um 21:57 schrieb Craig L Russell: Hi Marc, As Mike

Fwd: strange JPA Enhance stack

2009-05-18 Thread Marc Logemann
) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) --- regards Marc Logemann http

Re: strange JPA Enhance stack

2009-05-17 Thread Marc Logemann
difference i see is the JDK but it can be also something else though The classpath (at least user classpath) should be 100% the same because i am using ivy and again the server uses the same ivy file than every developer. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

strange JPA Enhance stack

2009-05-16 Thread Marc Logemann
) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: strange JPA Enhance stack

2009-05-16 Thread Marc Logemann
Ok guys, i give you a hint: It does work when i disable EMMA instrumentation. Why is it a problem when i let the EMMA instrument the classes? I wanted to use it because of code coverage statistics and its supported out of the box by TeamCity. --- regards Marc Logemann http

Re: Can't query against a MappedSuperclass

2009-04-20 Thread Marc Logemann
? The Note says the opposite... Perhaps it should be made clearer but i always thought that the note is not true, because in my code, i experienced the same as Jim. So any feedback from the core team appreciated --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

Re: inefficient mapping

2009-04-08 Thread Marc Logemann
in production and each day it gets more worse gr. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 08.04.2009 um 06:49 schrieb Paul Copeland: Hi Marc - I wonder what kind of database schema that produces. Normally you would have OneToMany on one side and ManyToOne

detachment of fetch-groups doesnt work

2009-04-08 Thread Marc Logemann
, its lost. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de

inefficient mapping

2009-04-07 Thread Marc Logemann
Marc Logemann http://www.logemann.org http://www.logentis.de

same @Id on mapped superclass

2009-03-06 Thread Marc Logemann
Hi, following domain model: @MappedSuperclass public class BasicMetaData { @Id @Column(name = oid) private long oid; ... } @Entity @VersionColumn(name = jdoversion) @Table(name = foo1) public class MetaData1 extends BasicMetaData { } @Entity @VersionColumn(name = jdoversion)

MethodQL completely broken isnt it?

2009-03-05 Thread Marc Logemann
Hi, since Filter Extension wont work as discussed, i wanted to use MethodQL as explained in Chapter 9 Section 5. I used mainly the same stuff explained in the docs: --- OpenJPAEntityManager oem = OpenJPAPersistence.cast(emf); OpenJPAQuery q = oem.createQuery(openjpa.MethodQL,

Re: FilterListener again

2009-03-05 Thread Marc Logemann
I just got my own message again in the list which i sent some days ago if other also got this, please ignore, this one is already disussed Marc Am 03.03.2009 um 18:29 schrieb Marc Logemann: Hi, ok, since feebdack on this one doesnt seem to work out and i only found fragments

cannot apply class transformer without LoadTimeWeaver

2009-03-03 Thread Marc Logemann
Hi, this issue was discussed by Hoeller and Linskey more than a year ago and its still there. See here: http://forum.springframework.org/archive/index.php/t-44299.html What is the solution here? Marc

docs concerning FilterListener and other extension points

2009-02-25 Thread Marc Logemann
Hi, i am on the way migrating a 120+ domain classes app from Kodo (jdo) to OpenJPA. But since we were power users of kodo with a whole lot of custom functions and extensions we need to rebuild them in OpenJPA. Unfortunately i found no docs at all regarding this. The official openJPA docs

Re: docs concerning FilterListener and other extension points

2009-02-25 Thread Marc Logemann
Hi, some more detailed questions on custom functions. I found that: http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/jdbc/kernel/exps/JDBCWildcardMatch.html The example in this javadoc is this line of JPAQL: address.street.ext:wildcardMatch (\?ain*reet\) I dont bother

OpenJPA Jar requirements

2008-10-16 Thread Marc Logemann
Hi, is there somewhere a list of the needed JARs for a deployment? I am assuming that i dont need the derby jar when using normal databases and i am wondering if i need commons-pool I scanned the docs but there is no page indicating what jars do what and if they are needed. BTW i

Re: current_date and persistent date field

2008-09-04 Thread Marc Logemann
. Similary there could be time() or timestamp() functions that modify the value of x.created before sending it to the DB. Is this a weird idea? Can one do this with custom functions in OpenJPA ? -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am

current_date and persistent date field

2008-09-03 Thread Marc Logemann
represents only the current date and in my Date attribute we have a complete Date with time. My intention is to compare just the date, but i have a java.util.Date attribute. It seems thats not possible at all. Anyone with ideas? Thanks. -- Marc Logemann blog http

injected entityManager is not compatible with OpenJPAEntityManager

2008-08-25 Thread Marc Logemann
Hi, in my DAO i am injecting via Spring: @PersistenceContext private EntityManager em; public void save(WSO wso) { OpenJPAEntityManager oem = (OpenJPAEntityManager) em; if (oem.isDetached(wso)) { em.merge(wso); } else {

searching in double nested list

2008-08-06 Thread Marc Logemann
nested relation but i have two levels. Thanks for ideas. -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org

Re: no state snapshot available on embedded mapping

2008-07-16 Thread Marc Logemann
Ok, will get it from there. Thanks for your efforts. I will report back then. -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 16.07.2008 um 01:02 schrieb Pinaki Poddar: The fix is on the trunk i.e. 1.2.0-SNAPSHOT. -- View this message

Re: no state snapshot available on embedded mapping

2008-07-15 Thread Marc Logemann
Hi, the strtegy is: @Id @GeneratedValue(strategy = GenerationType.IDENTITY) String oid; I will check it with both strategies (app vs. datastore) and comment on it -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 14.07.2008 um

Re: no state snapshot available on embedded mapping

2008-07-15 Thread Marc Logemann
i will test it tomorrow with the 1.1.0 nightly build. There the fix is applied isnt it? -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 15.07.2008 um 20:22 schrieb Pinaki Poddar: hi, a fix for openjpa-659 has been added. but have tested

Re: no state snapshot available on embedded mapping

2008-07-14 Thread Marc Logemann
here we go: https://issues.apache.org/jira/browse/OPENJPA-659 -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org Am 14.07.2008 um 18:24 schrieb Craig L Russell: Could you please file a JIRA with the relevant detail? Thanks, Craig

no state snapshot available on embedded mapping

2008-07-13 Thread Marc Logemann
by issueing: Query query = getEntityManager().createQuery(select o FROM Order o); query.getResultList(); What have i made wrong here? Looked in the docs and everything seems like expected -- Marc Logemann blog http://logemannreloaded.blogspot.com privat http://www.logemann.org

@ElementJoinColumn wrong documentation

2008-07-11 Thread Marc Logemann
Hi, in the docs there is something written with attribute (target). Obviously this attribute doesnt exist. Do you guys mean referencedColumnName instead? I am little bit surprised that one-many foreign key mapping is not part of JPA1. -- Marc Logemann blog http

Re: Lazy load for detached entities

2007-09-11 Thread Marc Logemann
by using fetch-groups and submit them when querying... But in some way you dont get the original idea of lazy-loading where the idea is that you dont need to know what you need afterwards. -- regards Marc Logemann [blog] http://www.logemann.org [busn] http://www.logentis.de Am 11.09.2007