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
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
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,
> >
> >
> >
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
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
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:
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
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:
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.
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
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();
://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
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
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
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
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
sensible way to tell OpenJPA to merge null relations differently?
---
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
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
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
(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
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
)
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
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
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
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
)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
---
regards
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
. 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
, 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
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
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
=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
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
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
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
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
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
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
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
.
---
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
+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
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
: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
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
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
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
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
-- 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
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
mappings
as well. Whats the problem here?
Thanks.
---
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
()) {
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
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
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:
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
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
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
)
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
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
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
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
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
. 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
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
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
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
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
)
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
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
)
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
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
? 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
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
, its lost.
---
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
Marc Logemann
http://www.logemann.org
http://www.logentis.de
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)
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,
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
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
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
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
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
.
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
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
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 {
nested relation but i have two
levels.
Thanks for ideas.
--
Marc Logemann
blog http://logemannreloaded.blogspot.com
privat http://www.logemann.org
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
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
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
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
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
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
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
92 matches
Mail list logo