https://issues.apache.org/jira/browse/OPENJPA-1416
Jean-Baptiste,
I realized that in our own in-house "framework to simply to the max the
use of fetchPlan" (just like yours... and ours?) we must be doing the
same, so I refereshed my memories by looking back at that code for you
(written over a year ago) and suddenly remembered that indeed there is
> how to dynamically, using fetch plan, exclude (rather than adding) to
the fetch plan some attribute not to retrieve
I probably misunderstand, but doesn't FetchPlan.clearFields() +
FetchPlan.clearFetchGroups() followed by a few addField() do what you
want (I haven't tried) ?
http://openjpa.apac
Hello Mojoers, I support the request for an e.g. non-SNAPSHOT v1.1
OpenJPA Maven plugin published to a repo somewhere...
Would be nice to be able to use the
http://jira.codehaus.org/browse/MOPENJPA-8 fix!
-Original Message-
From: Adam Hardy [mailto:adam@cyberspaceroad.com]
Sent: We
04).
It would be nice if such instructions were available from IBM for WAS...
-----Original Message-
From: Michael Vorburger
Sent: Wednesday, December 02, 2009 12:13 PM
To: 'users@openjpa.apache.org'
Subject: RE: Using latest OpenJPA in WebLogic 10
> Has anyone successfully us
Same question as in the previous/parallel thread "RE: Using latest
OpenJPA in WebLogic 10", but for IBM WebSphere (v7 only) : Do any of you
here know how to "officially" get WAS to accept a more recent version
(or simply a specific fixed version, instead of the one it comes with)
of an OpenJPA JAR?
> Has anyone successfully used this with OpenJPA to avoid using the one
provided by WebLogic?
Uh, we are (in DEV), and AFAIK it works... Can you elaborate on "I know
that this doesn't work 100% of the time" ??
-Original Message-
From: KARR, DAVID (ATTCINW) [mailto:dk0...@att.com]
Sent:
sm you may have, via
discussion on the list here, or directly via comments on the blog.
Thanks in advance for your interest & time!
_______
Michael Vorburger
http://www.vorburger.ch
Hi 周雁鸣,
CriteriaQuery cq = ...
TypedQuery tq = em.createQuery(cq);
tq.setFirstResult(0);
tq.setMaxResults(10);
List users = tq.getResultList();
long count = users.size();
This will, normally, generate TWO SQL queries - a SELECT {columns} ... and a
SELECT COUNT(id).
Ok?
-Original Messag
leads to "disappearing" objects
Hi Michael,
On Tue, Nov 17, 2009 at 2:45 AM, Michael Vorburger <
mvorbur...@odyssey-group.com> wrote:
> Can we interpret No Answer on this one from anybody as a Not Support /
> Not Interested / Go away? ;-)
Interested, but in the middle of
>>
http://openjpa.apache.org/builds/1.2.1/apache-openjpa-1.2.1/docs/manual/
manual.html#ref_guide_fetch
> That sounds good, although it's not standard.
But very, very, useful.. ;) I'm not sure how one can do serious ORM
without (something like) this; the fetch = FetchType.LAZY / EAGER stuff
is st
Balu,
Your description isn't very clear, your "making the object persistant"
using findById?! and your remove() results in an
"IllegalArgumentException: Removing a detached instance" or "does not
result any exception" ?
If you ARE trying to do em.remove() on a detached entity, what may work
(I h
.java JPA Entity classes, from some older in-house model (not an ora.xml
like you are looking for) using Xpand. As have many others of course,
e.g. http://www.fornax-platform.org/ may interest you.
Regards,
Michael Vorburger
Development Manager, Design Studio
Odyssey Financial Technologies
) ?
Thanks.
-Original Message-
From: Michael Vorburger [mailto:mvorbur...@odyssey-group.com]
Sent: Wednesday, November 11, 2009 6:57 PM
To: users@openjpa.apache.org
Subject: NULL in @Id columns leads to "disappearing" objects
Hello again!
We are working with an existing ('leg
> I tried to turn off auto detaching after commit or entity manager
closing by setting openjpa.AutoDetach property to "false" or to empty
value, but it seems not to work as I expected.
Funny to see this email today.. I coincidentally tried this last week as
well! I got it working on one open EM di
> I think build time enhancement solved it.
FYI: The run-time enhancement via subclassing has lot's of other
problems (the agent seems fine though; it does essentially the same
thing as the build time thing)... we specify
openjpa.RuntimeUnenhancedClasses = unsupported (@see
http://openjpa.apache.o
entity. An exception is therefore thrown out
when a MapKey annotation is detected by this strategy.
-Fay
- Original Message
From: Michael Vorburger
To: users@openjpa.apache.org; users@openjpa.apache.org
Sent: Thursday, April 2, 2009 3:06:01 PM
Subject: RE: Map field ... is
ts key is
mapped by another field. Use an inverse key or join table mapping.
It appears that openjpa currently does not support MapKey annotation applied to
a relation field. This, however, is not explicitly stated in the user guide or
JPA 2.0 spec. Please open a JIRA for it. Thanks!
-
gt; populate the tables for me. Let me take a look to see why this causes
> the ArrayIndexOutOfBoundsException.
>
> Regards,
> Fay
>
>
> --- On Tue, 3/3/09, Michael Vorburger
> wrote:
>
> > From: Michael Vorburger
>
> > Subject: RE: Array
Hello,
I'm getting a ArrayIndexOutOfBoundsException in
org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve(A
pplicationIds.java:602), full stack trace below.
This occurs when I try to use application ID Identity Hierarchies as per
http://openjpa.apache.org/builds/1.2.0/apache
Hi Pinaki!
The idea to use a custom DBDictionary for "SQL interception and
customization" is great; indeed it offers a lot of useful methods that
could give one all sorts of ideas... ;) (E.g. 1. add arbitrary SQL, 2.
calling stored procedures transparently, 3. replace bits of SQL; I'm
copy/past
Hello,
Is there any way (API; internal is fine..) to dynamically "intercept" a
SQL query (AFTER it has been generated from JPQL) and modify it slightly
(e.g. do a simple string replace on a table name by another one), just
before it's sent down to the DB through the JDBC connection?
I know about
Hello,
Imagine a dom. model like class A { @Id long id; String name; @Lazy B b;
}; class B { @Id String code; /* ... other attributes ... */ }.
When doing a Query on A with a FetchGroup that excludes the A's b field,
or simply through a @Lazy annotation, OpenJPA stills always loads the FK
(c.f.
Hello again Pinaki et al,
>> is there any interest from commiters if I can provide a test case
>> which demonstrates and reproduces this?
> Yes. Please post a reproducer test case.
We ran into this again recently, and after some debugging and reducing a
more complex model to a simple version tha
Hello,
If you have a class A { @PersistentCollection(elementEmbedded = true)
Set someLongNameAttribute }, there will be a table
A_B_someLongNameAttribute.
We are looking for a way to change the name of such tables created by
elementEmbedded (SQL table length problem), but unfortunately there is
n
Hello,
Just FYI: We also just ran into this after switching from 1.1.0 to
1.2.0... As described in earlier posts in this thread, wrong SQL was
used when accessing a collection field defined in a superclass from two
different subclasses. Using openjpa.jdbc.QuerySQLCache = false made the
problem go
d post a link here.
-Original Message-----
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: mercredi, 17. septembre 2008 19:07
To: users@openjpa.apache.org; [EMAIL PROTECTED]
Subject: RE: Example of Enum mapping (fixed numbering)
I got an example like yours below working, but this would store M
;M5", true);
private String description;
private Measure(String desc){
this.description=desc;
}
public String desc(){return this.description;} }
--- On Wed, 9/17/08, Michael Vorburger <[EMAIL PROTECTED]>
wrote:
> From: Michael Vorburger <[EMAIL PROTE
Does anybody have a concrete example of how to map an enum with fixed
ordinal numbering? I have a DB which has an numeric column where the
existing values mean something. I want to map that to an Entity
attribute of some enum type.
Reading http://forums.oracle.com/forums/thread.jspa?threadID=658
Hello,
a while ago we discussed the (still undocumented; see
https://issues.apache.org/jira/browse/OPENJPA-650 !)
openjpa.RuntimeUnenhancedClasses configuration in this list.
A question: On Java6, according to
http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_pc_enhance
.html#ref_gu
Pinaki,
Finally extending slightly beyond my previous "Wow" only response (thanks,
amazing turn around!) :
> Let me know if you can try the recent changes and whether it addresses your
> use case.
I built a 1.3.0-SNAPSHOT from SVN and hereby confirm it addresses the use case
initially posted
Hello, Marc and Jeremy, others:
> I've been searching for a means to do something similar with JPQL but
haven't found anything yet
I'm wondering if the "SQL passthrough" extenion, see
http://n2.nabble.com/Queries-using-specific-SQL,-e.g.-functions,-or-spec
ific-operators---passthrough-SQL-pieces-
I'm not sure that's the problem, but have you tried not putting any
@Column onto the QuestionResultsPK ?
Otherwise, browsing the code around that
ClassMetaData.validateAppIdClassPKs may help you understand better what
the message is trying to tell you?
-Original Message-
From: ericp56 [m
each time, to get the DDL
scripts for the databases you want to support. Makes sense?
Regards,
Michael
-Original Message-
From: Venu Kadari [mailto:[EMAIL PROTECTED]
Sent: dimanche, 31. août 2008 02:53
To: Michael Vorburger
Subject: Generate DDL Script without database access
Hi Michael,
LOW: fyi, JIRA about earlier discussion point 2 created:
https://issues.apache.org/jira/browse/OPENJPA-701
-Original Message-
From: Pinaki Poddar [mailto:[EMAIL PROTECTED]
Sent: vendredi, 8. août 2008 19:41
To: users@openjpa.apache.org
Subject: RE: Fetch Group questions
hi,
> 2. so
Hello again Pinaki et al,
We've run into a problem with FetchGroups which to me appears to be due
to an API Design limitation. Example, simplified Entity pseudo code:
abstract class Base { String code; }
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
class A extends Base { B b; }
@In
Hello,
1. How to get the mappingtool to actually check/enforce
maxTableNameLength / maxColumnNameLength (fail if any table/colum would
be longer) ?
2. How to get the mappingtool to generate all an lower-case schema
(matters on a case-sensitive DB, such as Sybase). We've tried
schemaCase = SCHEM
1. Thanks, that works great.
2. OK; understand perfectly what your saying; thanks for detailing. (Now
our data architect WILL probably cry that "there are unncessary columns
fetched!". In the "upper layer" that is creating the FetchPlan,
dynamically, we would actually have the information to know
Hello,
FYI, a little blog post about how to "capture" the SQL which OpenJPA
executed, to test against it in a JUnit, using a JDBCListener :
http://www.vorburger.ch/blog1/2008/08/testing-openjpa-sql-statements-usi
ng.html
Thought this may be useful to others.
Cheers,
Michael
_
from experts!
-----Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: lundi, 4. août 2008 18:47
To: users@openjpa.apache.org
Subject: Queries using specific SQL, e.g. functions, or specific operators -
passthrough SQL pieces without full native query
Hello,
We wou
he answer here - as we do want JPQL (traversing
relations) for other parts of the query, just on one field some SQL
function should be executed.
Thanks a lot,
Michael
_________
Michael Vorburger, Odyssey Financial Technologies
Direct phone: +41 21 310 00 86 (OAMS VOIP: 108
trates and reproduces this?
Regards,
Michael Vorburger
org.apache.openjpa.persistence.PersistenceException:
com.toto.my.PositionValueEntity.positions.com.toto.my.PositionEntity.ins
trument
at
org.apache.openjpa.kernel.StateManagerImpl.setExtraFieldData(StateManage
rImpl.jav
missing"
columns are fetched and "merged" ?
Thank you very much,
Michael
_
Michael Vorburger, Odyssey Financial Technologies
This email and any files transmitted with it are CONFIDENTIAL
Hello,
Has somebody done any work on Autofetch for OpenJPA, since our email
exchange in March? - Just curious.
Thank you,
Michael
This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the
ome
relevance. In slice, we designate one database in the cluster as 'master'
for the purpose of ID generation.
Michael Vorburger-4 wrote:
>
> Hello,
>
> How do you do Clustering and ID TableGenerator
> (e.g.OPENJPA_SEQUENCE_TABLE) ?
>
> Will this somehow m
states that Statement
Batching won't work with GeneratedType=IDENTITY - so this option doesn't
seem terribly tempting in order to get ID and clustering happily married
together.
How do people out there do this with OpenJPA?
Thank you,
Michael
_____
Michael V
e JPA 2.0 Spec in this space?
Thank you,
Michael
_
Michael Vorburger, Odyssey Financial Technologies
This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of th
Hello,
You may want to have a look at Spring's JPA support, which I believe
enables you to do what you want (inject an EntityManager), even if
Tomcat is not an EJB container.
I found this http://java.sys-con.com/read/366275.htm article useful.
This http://dev2dev.bea.com/pub/a/2006/03/jpa-spring-
may want to add openjpa.RuntimeUnenhancedClasses=unsupported to your
configuration as well, it really helps us.
At least for me it is - if you ARE doing build time enhancement or using
the Agent and this still/anyway happens to you, then it's something
else; sorry.
Regards,
Michael Vorbur
ty for this? For
>> backward compatibility, now that it's out, it probably has be remain
>> ON by default (or can you make it OFF by default?), but at least give
>> us a configuration option to switch this *#ç mode ;-) off! Shall I
>> file a new JIRA Enhancement requesting this?
>>
>> Thank
Michael
PS: In the short term, I may make our own OpenJPA wrapper/helper stuff to
abort... it should be relatively easy to check at start-up if some class
implements org.apache.openjpa.enhance.PersistenceCapable (by the Enhancer), but
how could I check if, alternatively, the Agent is actively
Hello,
Does OpenJPA support JDBC Statement Batching ?
Thanks.
This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
Any unautho
Well, what is the type of those fields in your JPAIndexedPilot class?
-Original Message-
From: James Sutherland [mailto:[EMAIL PROTECTED]
Sent: mardi, 13. mai 2008 21:57
To: users@openjpa.apache.org
Subject: agent error
I'm trying to getting a very simple model working in OpenJPA 1.0.2
https://issues.apache.org/jira/browse/OPENJPA-602
-Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: mercredi, 30. avril 2008 17:07
To: users@openjpa.apache.org; [EMAIL PROTECTED]
Subject: NPE at RelationToManyInverseKeyFieldStrategy when using
mappedBy inverse
Hello,
Similar situation here, and I wonder about people's thoughts & pros/cons
regarding this:
> Your solution (anotate "ModelObject parent;" with @ManyToOne instead
of @Transient and add mappedBy="parent" to @OneToMany) works, also for
my application, but turns the uni-directional relation into
How about you check the DB2 documentation about what SQLCODE: -530,
SQLSTATE: 23503 means?
Sometimes it helps to try on another DB, e.g. an embedded Derby, for
clarity.
-Original Message-
From: Scherer, Annette [mailto:[EMAIL PROTECTED]
Sent: jeudi, 8. mai 2008 15:53
To: users@openjpa.a
I'm sure it's not that simple, but you aren't maybe by chance not using
enhancement (build or that -javaagent) and relying on the OpenJPA
feature that allows to run even unenhanced in some kind of degraded mode
(there is a log at the beginning if you're in that mode), and we noticed
that "change tr
hine, hope hope for a magic answer that this is just coming... ;-)
PS: I looked through the JIRA and couldn't see anything related to this,
so I took the liberty to file
https://issues.apache.org/jira/browse/OPENJPA-593, hope that's OK.
-Original Message-
From: Michael Vorburger
Why not use OpenJPA Managed Inverses,
http://openjpa.apache.org/docs/latest/manual/ref_guide_inverses.html ?
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: mercredi, 7. mai 2008 17:51
To: users@openjpa.apache.org
Subject: maintaining bi-directional relationships
Thi
Amit,
> I imagine I do not need a join table, but a child table that has the
owner entity ID, Enumerated
> String Value and a Sequence, but I do not know how to represent that
in a @OneToMany annotation.
This looks a bit like my "Re: One-Sided One-Many Mapping, but to
different tables - missing @
Hello,
Is anybody "here" may be attending the http://jazoon.com/ conference (in
Zurich/Switzerland, in late June) ?
I'll be there and it could be fun to meet-up with other OpenJPA folks
from near or far.
Regards,
Michael
_________
Michael Vorburger, Od
Jonas,
I wonder if the OpenJPA "Remote and Offline Operation" stuff
(http://openjpa.apache.org/docs/latest/manual/ref_guide_event.html) may
allow you to build what you're after...
Regards,
Michael
-Original Message-
From: Andy Schlaikjer [mailto:[EMAIL PROTECTED]
Sent: jeudi, 1. mai 20
dea, hints, things to try, etc.!
_____
Michael Vorburger, Odyssey Financial Technologies
___
Exception in thread "main" java.lang.NullPointerException at
org.apache.openjpa.jdbc.meta.strats.RelationToManyInverseKeyFieldStrateg
y.map(RelationToM
PS: I just saw that http://jcp.org/en/jsr/detail?id=317 (Java Persistence 2.0)
says "... support for collections of embedded objects, multiple levels of
embedded objects ..." ... hm.
Can anybody comment if there are plans for this?
-Original Message-----
From: Michael Vorburg
n already have; I'm on a 1.1.0-SNAPSHOT.jar built from trunk as of
29.03.2008).
Regards,
Michael
-Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: samedi, 29. mars 2008 03:14
To: users@openjpa.apache.org
Subject: RE: One-Sided One-Many Mapping
Is there a way to do this without orm.xml, e.g. in persistence.xml? Or
can you specify an orm.xml with for this, and leave the rest of mapping
metadata in annotations?
-Original Message-
From: Patrick Linskey [mailto:[EMAIL PROTECTED]
Sent: mardi, 29. avril 2008 16:43
To: users@openjpa
Hello,
If you specify a AS IS DOCUMENTED on
http://openjpa.apache.org/docs/latest/manual/ref_guide_mapping_defaults.
html you get a WEIRED error
"org.apache.openjpa.persistence.ArgumentException: No table was given
for persistent type" message (full stack trace below). The work-around
I found is
Hello,
Has anybody here managed to successfully run the mappingtool
"connection-less" in order to generate DDL script without database
access? How??
The initial message below says "if you put enough information into the
openjpa.jdbc.DBDictionary setting, then things should work." and "Re:
Using D
https://jpaquerytool.dev.java.net/
-Original Message-
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED]
Sent: lundi, 31. mars 2008 10:15
To: users@openjpa.apache.org
Subject: Re: Swing JPQL console
Jan Kotek wrote:
> Hello,
> I am using OpenJPA with Derby in an astronomical opensource
Errors: 5, Skipped: 0" from trunk, so can't really test...)
Can I become commiter if I continue on like this? ;-)
Regards,
Michael
-Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: vendredi, 29. février 2008 10:11
To: users@openjpa.apache.org
Subj
PA 1.0 -- embedded values in collections. Upgrade and
things should work.
FWIW, this behavior will be part of JPA2.
-Patrick
On Mon, Mar 17, 2008 at 11:07 AM, Michael Vorburger
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to map the Elements contained in a OneToMany Collection (Set)
Hi,
I need to map the Elements contained in a OneToMany Collection (Set) in
some class to one table, and Elements of the same Class Type contained
in a OneToMany Collection (Set) in another class to another table. Know
what I mean?
The example on the Subscription/LineItem example from
http://op
_
Michael Vorburger, Odyssey Financial Technologies
Direct phone: +41 21 310 00 86 (OAMS VOIP: 1086)
Cell phone: +41 78 805 5541
Mailto: [EMAIL PROTECTED]
This email and any files transmitted with it are CONFIDENTIAL and intended
-Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: mardi, 26. février 2008 19:57
To: users@openjpa.apache.org
Subject: Foreign Key constraints on Sybase?
Hello,
I am trying to get Foreign Key constraints generated by the mappingtool on
Sybase.
After some doc rea
f the
geronimo-jpa_3.0_spec-1.0.jar (in order to have JavaDoc Help in Eclipse?).
Probably not - why would there be? Is this "allowed" (more out of curiosity),
license wise? Presumably yes?
Regards,
Michael Vorburger
-Original Message-
From: Patrick Linskey [mailto:[EMAIL PROTE
ore fluently than I do
about this. Surely there is an alternative syntax?
_
Michael Vorburger, Odyssey Financial Technologies
Direct phone: +41 21 310 00 86 (OAMS VOIP: 1086)
Cell phone: +41 78 805 5541
Mailto: [EMAIL PROTECTED]
Hi again - any chance somebody could clarify what the OpenJPA option is
that will turn on renaming to avoid clashes of Java class/field names
with RDBMS reserved words? Thanks a lot!
-Original Message-
From: Michael Vorburger [mailto:[EMAIL PROTECTED]
Sent: samedi, 19. janvier 2008 00
vious?
The problem is twofold: OpenJPA is not properly escaping reserved
words, and the JPA spec mandates how field and column names are
converted by default. The first part is the salient bug; the second
part is why OpenJPA isn't doing any conversion of the columns
automatically. There is
work "out of the box",
I would have thought? Any ideas?
Regards and thanks,
Michael
_
Michael Vorburger, Odyssey Financial Technologies
(...)
_
WITH existing DB, when ALTERing:
run:
[java] 47 hellojpa INFO [main] openjpa.Runtime - Starti
79 matches
Mail list logo