RE: Fetch plan question

2009-12-07 Thread Michael Vorburger
https://issues.apache.org/jira/browse/OPENJPA-1416

RE: Fetch plan question

2009-12-07 Thread Michael Vorburger
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

RE: Fetch plan question

2009-12-07 Thread Michael Vorburger
> 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

RE: openjpa-maven-plugin snapshot

2009-12-03 Thread Michael Vorburger
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

RE: Using latest OpenJPA in WebLogic 10

2009-12-02 Thread Michael Vorburger
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

Using latest OpenJPA in IBM WebSphere v7

2009-12-02 Thread Michael Vorburger
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?

RE: Using latest OpenJPA in WebLogic 10

2009-12-02 Thread Michael Vorburger
> 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:

Id/Object References always, with Null Objects

2009-11-26 Thread Michael Vorburger
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

RE: How to count on a query then reuse this query fetch data?

2009-11-23 Thread Michael Vorburger
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

RE: NULL in @Id columns leads to "disappearing" objects

2009-11-19 Thread Michael Vorburger
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

RE: How work around OpenJPA-1365

2009-11-18 Thread Michael Vorburger
>> 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

RE: Deleting a persistant object not resulting exception but not deleting the data from database table

2009-11-18 Thread Michael Vorburger
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

RE: Generate .java Files from ora.xml?

2009-11-18 Thread Michael Vorburger
.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

RE: NULL in @Id columns leads to "disappearing" objects

2009-11-17 Thread Michael Vorburger
) ? 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

RE: Is it possible to turn off AutoDetach?

2009-11-16 Thread Michael Vorburger
> 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

RE: Locking Exception after Persisting new entity

2009-11-13 Thread Michael Vorburger
> 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

RE: Map field ... is attempting to use a map table, but its key is mapped by another field. Use an inverse key or join table mapping.

2009-04-06 Thread Michael Vorburger
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

RE: Map field ... is attempting to use a map table, but its key is mapped by another field. Use an inverse key or join table mapping.

2009-04-02 Thread Michael Vorburger
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! -

RE: ArrayIndexOutOfBoundsException in org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve

2009-03-04 Thread Michael Vorburger
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

ArrayIndexOutOfBoundsException in org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve

2009-03-03 Thread Michael Vorburger
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

RE: Mapping a temporary table

2009-01-14 Thread Michael Vorburger
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

RE: Mapping a temporary table

2009-01-13 Thread Michael Vorburger
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

Get @Id field value (FK) without loading entity (JOIN) when using FetchGroups or Lazy Loading

2008-11-14 Thread Michael Vorburger
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.

RE: at org.apache.openjpa.kernel.StateManagerImpl.setExtraFieldData(StateManagerImpl.java:718)

2008-11-03 Thread Michael Vorburger
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

Missing (table)name on @PersistentCollection(elementEmbedded = true)

2008-10-02 Thread Michael Vorburger
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

RE: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-10-02 Thread Michael Vorburger
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

RE: Example of Enum mapping (fixed numbering)

2008-09-17 Thread Michael Vorburger
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

RE: Example of Enum mapping (fixed numbering)

2008-09-17 Thread Michael Vorburger
;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

Example of Enum mapping (fixed numbering)

2008-09-17 Thread Michael Vorburger
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

openjpa.RuntimeUnenhancedClasses & Java6

2008-09-17 Thread Michael Vorburger
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

RE: Fetch Group questions

2008-09-12 Thread Michael Vorburger
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

RE: current_date and persistent date field

2008-09-09 Thread Michael Vorburger
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-

RE: PK Problem, mismatched property

2008-09-09 Thread Michael Vorburger
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

RE: Generate DDL Script without database access

2008-09-01 Thread Michael Vorburger
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,

RE: Fetch Group questions

2008-08-25 Thread Michael Vorburger
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

RE: Fetch Group questions

2008-08-25 Thread Michael Vorburger
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

Enable maxTableNameLength/maxColumnNameLength, and lower-case schema?

2008-08-20 Thread Michael Vorburger
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

RE: Fetch Group questions

2008-08-06 Thread Michael Vorburger
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

Testing OpenJPA SQL statements using a JDBCListener

2008-08-06 Thread Michael Vorburger
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 _

RE: Queries using specific SQL, e.g. functions, or specific operators - passthrough SQL pieces without full native query

2008-08-06 Thread Michael Vorburger
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

Queries using specific SQL, e.g. functions, or specific operators - passthrough SQL pieces without full native query

2008-08-04 Thread Michael Vorburger
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

at org.apache.openjpa.kernel.StateManagerImpl.setExtraFieldData(StateManagerImpl.java:718)

2008-07-17 Thread Michael Vorburger
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

Fetch Group questions

2008-07-17 Thread Michael Vorburger
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

RE: Autofetch - auto-magically add association prefetches to ORM object queries to reduce the number of round-trips to an object store

2008-07-17 Thread Michael Vorburger
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

RE: Clustering & ID TableGenerator (OPENJPA_SEQUENCE_TABLE)

2008-07-10 Thread Michael Vorburger
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

Clustering & ID TableGenerator (OPENJPA_SEQUENCE_TABLE)

2008-07-09 Thread Michael Vorburger
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

Stored Procedure support (AKA replace INSERT and UPDATE)

2008-07-09 Thread Michael Vorburger
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

RE: Tomcat Injection

2008-07-09 Thread Michael Vorburger
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-

RE: StackOverflow with simple entity

2008-07-02 Thread Michael Vorburger
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

RE: Disable dangerous "fallback enhancement" how?

2008-07-02 Thread Michael Vorburger
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

Disable dangerous "fallback enhancement" how?

2008-06-23 Thread Michael Vorburger
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

JDBC Statement Batching support in OpenJPA?

2008-05-20 Thread Michael Vorburger
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

RE: agent error

2008-05-14 Thread Michael Vorburger
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

RE: NPE at RelationToManyInverseKeyFieldStrategy when using mappedBy inverse

2008-05-14 Thread Michael Vorburger
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

RE: Question about @OneToMany

2008-05-08 Thread Michael Vorburger
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

RE: Persist pojo

2008-05-08 Thread Michael Vorburger
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

RE: update always called on commits (still)

2008-05-07 Thread Michael Vorburger
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

RE: One-Sided One-Many Mapping, but to different tables - missing @ElementEmbeddedMapping ?

2008-05-07 Thread Michael Vorburger
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

RE: maintaining bi-directional relationships

2008-05-07 Thread 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

RE: List mapping of Enumerated Types

2008-05-06 Thread Michael Vorburger
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 @

Jazoon conference, anybody?

2008-05-06 Thread Michael Vorburger
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

RE: Synchronizing two databases with the same model

2008-05-06 Thread Michael Vorburger
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

NPE at RelationToManyInverseKeyFieldStrategy when using mappedBy inverse

2008-04-30 Thread Michael Vorburger
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

RE: One-Sided One-Many Mapping, but to different tables - missing @ElementEmbeddedMapping ?

2008-04-29 Thread Michael Vorburger
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

RE: One-Sided One-Many Mapping, but to different tables - missing @ElementEmbeddedMapping ?

2008-04-29 Thread Michael Vorburger
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

RE: How to prebuild cascade types

2008-04-29 Thread Michael Vorburger
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

Weired error "org.apache.openjpa.persistence.ArgumentException: No table was given for persistent type" due to a openjpa.jdbc.MappingDefaults problem

2008-04-24 Thread Michael Vorburger
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

RE: generate DDL script without database access

2008-04-24 Thread Michael Vorburger
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

RE: Swing JPQL console

2008-04-24 Thread Michael Vorburger
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

RE: Foreign Key constraints on Sybase?

2008-03-28 Thread Michael Vorburger
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

RE: One-Sided One-Many Mapping, but to different tables - missing @ElementEmbeddedMapping ?

2008-03-28 Thread Michael Vorburger
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)

One-Sided One-Many Mapping, but to different tables - missing @ElementEmbeddedMapping ?

2008-03-17 Thread Michael Vorburger
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

Autofetch - auto-magically add association prefetches to ORM object queries to reduce the number of round-trips to an object store

2008-03-11 Thread Michael Vorburger
_ 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

RE: Foreign Key constraints on Sybase?

2008-02-29 Thread Michael Vorburger
-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

JPA Spec JAR - RE: multiple persistence-units, each w different provider

2008-02-29 Thread Michael Vorburger
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

Foreign Key constraints on Sybase?

2008-02-26 Thread Michael Vorburger
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]

RE: Reserved keywords mechanism working?

2008-01-22 Thread Michael Vorburger
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

RE: Reserved keywords mechanism working?

2008-01-18 Thread Michael Vorburger
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

Reserved keywords mechanism working?

2008-01-17 Thread Michael Vorburger
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