Re: solve javax.persistence.EntityNotFoundException with JPA (not by using @NotFound in HIBERNATE)

2015-09-14 Thread Craig L Russell
element not present in table2 .don't > want error to throw in page > > How solve javax.persistence.EntityNotFoundException with JPA (not by using > @NotFound in HIBERNATE) > > Could you please help. > > -- > Thanks & Regards > Prabu.N Craig L Russel

Re: What is the best practice for handling results from JPQL query?

2013-02-01 Thread Craig L Russell
uirements, but in general just use the List behavior until you find you need something more. And then ask here to see if there's a better way. Craig Thanks, Chris Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: [DISCUSS] JDO usage end-of-life?

2011-10-11 Thread Craig L Russell
e, you should see no differences in functionality. Like I said, Marc's posting prompted me to revisit this topic. I'm just exploring the option with no immediate plans of actually doing the work... Thanks, Kevin [1] http://openjpa.208410.n2.nabble.com/weird-JDO-Exception-whe

Re: No error message while I would wait for one

2011-03-05 Thread Craig L Russell
r. After I added the correct fetch plan : A.class, id, everything works fine. What do you think ? Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: "join fetch" doesnt work as expected

2011-02-22 Thread Craig L Russell
ist() call. What am i missing here? thanks for infos. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: Does PrePersist work when merging entities? (2.0.1)

2011-02-09 Thread Craig L Russell
st t = em.find(Test.class, 1); t.setName("new name"); em.merge(t); em.getTransaction().commit(); em.close(); } } Any clues? Joel ________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: Evicting

2011-02-09 Thread Craig L Russell
like this when I have to, but I have people on staff writing JavaScript extensions to the product who know nothing about how JPA works and ideally shouldn't have to. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: Evicting

2011-02-08 Thread Craig L Russell
t to do after deleting an object, so if find() fails, that's OK. But the above scenario is a little harder to understand. Why can't I change a property on an object, delete it, then save some *other* object. I'm glazing over the problem of using JDBC to do the delete, of course, but you see my point. -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com http://www.opentempo.com mailto:daryl.stu...@opentempo.com Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: [ANNOUNCE] Welcome Heath Thomann as a new committer

2011-01-05 Thread Craig L Russell
Congratulations Heath! Craig On Jan 5, 2011, at 12:14 PM, Michael Dick wrote: The OpenJPA PMC recently extended committership to Heath Thomann and he accepted. Welcome aboard Heath! -mike Craig L Russell Secretary, Apache Software Foundation Chair, OpenJPA PMC c...@apache.org http

Re: Latest OpenJPA trunk updates

2010-07-20 Thread Craig L Russell
-2.1.0-SNAPSHOT.jar no longer need to include a dependency exclusion for commons-logging. Enjoy! Donald Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: Opinion of statement: "The JPA specification doesn't have a way to deal with a shared primary key"

2010-07-17 Thread Craig L Russell
And I meant to add that you could also consider the two tables to be in an inheritance relationship in which the table with the "logical foreign key" maps to an Entity that is a subclass of the other Entity. Craig On Jul 16, 2010, at 10:39 PM, Craig L Russell wrote: There&#

Re: Opinion of statement: "The JPA specification doesn't have a way to deal with a shared primary key"

2010-07-16 Thread Craig L Russell
Entity's own primary table. Craig On Jul 16, 2010, at 6:57 PM, KARR, DAVID (ATTSI) wrote: Would you say that the following statement is accurate or not? "The JPA specification doesn't have a way to deal with a shared primary key." Isn't this what "secondary-tabl

Re: Disabling enhancement on my netbeans project

2010-07-11 Thread Craig L Russell
enjpa.208410.n2.nabble.com/Disabling-enhancement-on-my-netbeans-pro ject-tp3861704p5280701.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: Can entity manager join jdbc transaction?

2010-06-02 Thread Craig L Russell
connection, but I'm guessing the EM would close it before my JDBC operation is done. Thanks. -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com http://www.opentempo.com mailto:daryl.stu...@opentempo.com Craig L Russell Ar

Re: equals, hashcode, toString, etc, and field access

2010-05-30 Thread Craig L Russell
toString method like yours in my project could crash. -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com http://www.opentempo.com mailto:daryl.stu...@opentempo.com Craig L Russell Architect, Oracle http://db.apache.

Re: equals, hashcode, toString, etc, and field access

2010-05-27 Thread Craig L Russell
y what all the enhancement is for, right? But, I don't think I care, do I? Can I disable the analysis for certain methods? Thanks. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: OpenJPA confusing classes

2010-05-25 Thread Craig L Russell
Pinaki -- View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-confusing-classes-tp5094249p5099457.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Fwd: [Travel Assistance] - Applications Open for ApacheCon NA 2010

2010-05-16 Thread Craig L Russell
ood luck to all those that will apply. You are welcome to tweet, blog as appropriate. Regards, The Travel Assistance Committee. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: NoSuchMethodError: org.apache.openjpa.l ib.conf.IntValue.get()I

2010-05-06 Thread Craig L Russell
ClusterJPA has only been tested with OpenJPA 1.2.0. Can you try this and let me know? Craig On May 6, 2010, at 10:05 AM, Craig L Russell wrote: Hi Marton, The component you're using is indeed the new ClusterJPA that was shipped as part of MySQL Cluster 7.1.3 last month. This is an

Re: NoSuchMethodError: org.apache.openjpa.l ib.conf.IntValue.get()I

2010-05-06 Thread Craig L Russell
t from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: What is a NaN?

2010-05-03 Thread Craig L Russell
09 PM, C N Davies wrote: I guess it is "Not a Number", A long shot: do you have any JavaScript involved? -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:da...@6degrees.com Craig L Russell Ar

Re: NPE in enhanced entity (where I can't see it)

2010-04-30 Thread Craig L Russell
s much as I can see. For right now, we moved the capitalizing logic out of the entity, but was wondering if there is a way to move it back to the entity... -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! Craig L Russe

Re: Problem build and run hellojpa using Maven

2010-04-22 Thread Craig L Russell
dbc.SynchronizeMappings=buildSchema -Dopenjpa.Log=DefaultLevel=WARN,SQL=TRACEargument> -classpath hellojpa.Main Do you have any idea of what could be the problem? -- Hez Craig L Russell Architect, Oracle http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@oracle.com P.S. A good JDO? O, Gasp!

Re: [DISCUSS] Upcoming OpenJPA 2.0.0 release plans

2010-03-04 Thread Craig L Russell
(probably renamed to 2.1) will still be open for any changes. Also, please use this email thread to discuss any critical patches that you would like to see considered for 2.0.0. Thanks, Donald Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 40

Re: How to Setup a Named Query to Use Eager Fetch

2010-02-06 Thread Craig L Russell
ass Country implements Serializable { @Column(name = "COUNTRY_CODE") @Id private String countryCode; -- View this message in context: http://n2.nabble.com/How-to-Setup-a-Named-Query-to-Use-Eager-Fetch-tp4523309p4523309.html Sent from the OpenJPA Users mailing list archive at

Re: JPQL to get association members, but only ones that fulfill a condition

2010-02-03 Thread Craig L Russell
stinct", with the same result. I have a feeling I'm heading towards having to construct a specific query for the bars that are child of this foo and are in the date range. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun

Re: JPQL to get association members, but only ones that fulfill a condition

2010-02-03 Thread Craig L Russell
feeling I'm heading towards having to construct a specific query for the bars that are child of this foo and are in the date range. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Upcoming Live Webinars: New Java and JPA Access to the MySQL Cluster Database

2010-01-27 Thread Craig L Russell
able here: http://www.clusterdb.com/mysql-cluster/upcoming-webinars-for-java-and-jpa-access-to-mysql-cluster/ >> Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: How to release db connection into pool?

2010-01-21 Thread Craig L Russell
57 AM, wang yu wrote: Craig: Thank you for your quick response. If I close it, the connection will be returned into pool or just destroyed? Regards, Yu Wang On Thu, Jan 21, 2010 at 8:56 PM, Craig L Russell > wrote: Hi Yu Wang, You need to tell OpenJPA that you're not using the Connecti

Re: ClassCastException in pcReplaceField

2010-01-21 Thread Craig L Russell
y hashCode and equals. Ordered collections (e.g. TreeSet) require the elements to implement Comparable or to have a Comparator specified at creation. Maybe we're reading different parts of the spec... Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/j

Re: How to release db connection into pool?

2010-01-21 Thread Craig L Russell
l, Class resultClass) to query with native sql? Regards, Yu Wang Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: openjpa ignoring column annotation

2010-01-11 Thread Craig L Russell
other tables ... */ } -- View this message in context: http://n2.nabble.com/openjpa-ignoring-column-annotation-tp4286639p4287474.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: Multibyte characters on SQL Server and Sybase

2010-01-11 Thread Craig L Russell
On Jan 11, 2010, at 10:57 AM, Michael Dick wrote: On Mon, Jan 11, 2010 at 12:38 PM, Craig L Russell >wrote: Hi Mike, On Jan 11, 2010, at 7:24 AM, Michael Dick wrote: Hi Craig, That sounds reasonable for this specific use case. I'm a little leery of doing too much validatio

Re: openjpa ignoring column annotation

2010-01-11 Thread Craig L Russell
nnotation-tp4286639p4286639.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: Multibyte characters on SQL Server and Sybase

2010-01-11 Thread Craig L Russell
in their own way. The columnDefinition is not further standardized in the specification so we can do anything we want to with it. We could analyze the columnDefinition and look for the ANSI standard strings NCHAR(n) and NVARCHAR(n) and translate these into the database-specific type. Craig Cr

Re: Multibyte characters on SQL Server and Sybase

2010-01-08 Thread Craig L Russell
er standardized in the specification so we can do anything we want to with it. We could analyze the columnDefinition and look for the ANSI standard strings NCHAR(n) and NVARCHAR(n) and translate these into the database- specific type. Craig Craig L Russell wrote: Hi, On Jan 8, 2010, a

Re: Multibyte characters on SQL Server and Sybase

2010-01-08 Thread Craig L Russell
't support the standard columnDefinition annotation in the way you want it to? Craig Marc Boudreau Software Developer IBM Cognos Content Manager marc.boudr...@ca.ibm.com Phone: 613-356-6412 Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailt

Re: How to map "optional" joins without having to define optional intermediate entities?

2010-01-07 Thread Craig L Russell
is a column in the CATEGORY table that is the target of a foreign key in the CATEGORY_ES table. The semantics of a one to one relationship are very similar to a secondary table so most of your application logic should work. Just check the reference for null (don't assume that

Re: OpenJPA 1.2.2 release.

2010-01-07 Thread Craig L Russell
it overdue. The 1.2.x tree is in pretty good shape, is anyone opposed to locking it down this week and starting a release on Monday? -mike Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: Easier strategy to debug "Fail to convert to internal representation"

2009-12-23 Thread Craig L Russell
which entity was having the problem? It seems to me that this "catch" clause in that method (shown below) is missing the opportunity to provide a little more useful information. The resulting SQLException doesn't tell me anything. Is it reasonable to enhance this to provide more

Re: unmanaged exception

2009-12-23 Thread Craig L Russell
mmit anyway), I can't see that referencing the id of a newly persisted entity before commit is a bad coding practice. Anyone have a different opinion? -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:da...@6degrees.c

Re: How to get hardcoded ordinal values to map to specific Enum values?

2009-12-23 Thread Craig L Russell
ns in their own name spaces, and they must have a completely different "orm.xml" in their own name spaces in order to complement (not extend) the orm. Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S

Re: How to get hardcoded ordinal values to map to specific Enum values?

2009-12-19 Thread Craig L Russell
n. mailto:jsr-317-feedb...@sun.com Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: How to get hardcoded ordinal values to map to specific Enum values?

2009-12-18 Thread Craig L Russell
alues? On Thu, Dec 17, 2009 at 6:31 PM, Craig L Russell wrote: You would need your own value type as an extra attribute of your Enum class, and then use a special OpenJPA mapping to get the values to and from the database. Maybe it's the "special OpenJPA mapping" info the OP

Re: How to get hardcoded ordinal values to map to specific Enum values?

2009-12-17 Thread Craig L Russell
ues. I can't just assume the first value maps to "0", and so on. I don't see an obvious way to define an enumerated type where I can set the ordinal values. Am I missing something simple here? Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo

Re: Get "You cannot access the EntityTransaction when using managed transactions." when I implement @Transactional methods with OpenJPA

2009-12-17 Thread Craig L Russell
I guess I can at least make that statement. The main thing is to open an issue and propose where in the documentation *you* would expect the missing information to be. We can then discuss in the context of a "change request" what material should go there. Thanks, Crai

Re: Get "You cannot access the EntityTransaction when using managed transactions." when I implement @Transactional methods with OpenJPA

2009-12-17 Thread Craig L Russell
pringframework.transaction.interceptor.TransactionInterceptor.invok e(TransactionInterceptor.java:101) at org .springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref lectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy $DynamicAdvis

Re: Get "You cannot access the EntityTransaction when using managed transactions." when I implement @Transactional methods with OpenJPA

2009-12-16 Thread Craig L Russell
ercept(Cglib2AopProxy.java:635) at com.att.ecom.dynamiccontent.service.CatalogService$$EnhancerByCGLIB$ $5a7 c3444.retrieveCatalogTree() at com.att.ecom.dynamiccontent.content.Content.getCatalog(Content.java: 35) ---- Craig L Russell Architect, Sun Java Enterpri

Re: ordered one-to-many with join-table

2009-12-14 Thread Craig L Russell
n should be ordered by a column value in the join table. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: Issues using same domain classes in JPA and CXF/JAXB

2009-12-13 Thread Craig L Russell
class did. When JPA enhanced the classes, it didn't copy the annotations. My app currently doesn't use build-time enhancement or the javaagent. I can't remember exactly what OpenJPA does in that situation. I think it's still enhancing the class, but on demand. Is this issue wit

Re: Issues using same domain classes in JPA and CXF/JAXB

2009-12-13 Thread Craig L Russell
t remember exactly what OpenJPA does in that situation. I think it's still enhancing the class, but on demand. Is this issue with non-copied annotations really an issue, or should I look elsewhere for why CXF isn't serializing my data (I'm asking a similar question on the

Re: Impact of not using a transactional service layer in a read-only JPA application?

2009-12-13 Thread Craig L Russell
think I'd prefer to have the service layer be transactional, even if it's only read-only, but I'm wondering what the impact will be either way. Will this give me overhead I don't need? Will NOT using transactional semantics possibly create some race condition that mig

Re: Issues using same domain classes in JPA and CXF/JAXB

2009-12-12 Thread Craig L Russell
I'm asking a similar question on the CXF list)? Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

Re: Fetch plan question

2009-12-07 Thread Craig L Russell
degrees.com mailto:da...@6degrees.com Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Fetch plan question

2009-12-06 Thread Craig L Russell
AllFields(Class) This sounds like a non-optimization to me. It just isn't that expensive to construct fetch plans. Craig Thanks ! Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7

Re: What happens with invalid query hints?

2009-12-02 Thread Craig L Russell
d by this. Under what circumstances will a hint be ignored, and when will it get an ArgumentException? Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: OpenJPA 1.2.1 violates JPA 1.0 specification

2009-11-21 Thread Craig L Russell
erImpl.flush(BrokerImpl.java:2010) --- Please clarify. Thanks Amit Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: @Version annotation

2009-11-16 Thread Craig L Russell
// update the element. em.persist(element); The update worked but I don't see any version number in my database field. Please help :) -- View this message in context: http://n2.nabble.com/Version-annotation-tp4013067p4013067.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Fetchgroups recursion problem

2009-10-23 Thread Craig L Russell
ge in context: http://n2.nabble.com/Fetchgroups-recursion-problem-tp3874382p3877617.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Bug in Delete from query ?

2009-09-14 Thread Craig L Russell
I am using OpenJPA 1.2.1 and HsqlDB hsqldb-1.9.0-rc4 Thanks for help. -- Cordialement Fabien CHARLET Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Why OpenJPA rocks. was: Custom proxy : idea review needed

2009-08-05 Thread Craig L Russell
- View this message in context: http://n2.nabble.com/Custom-proxy-%3A-idea-review-needed-tp3376839p3391748.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ

Re: [DISCUSS] Drop build support for Java 5?

2009-08-05 Thread Craig L Russell
fective from, say, mid-June. I am not keen on exact duration of the prior notice but 2 months looked to be reasonable. Fair enough. My concern lies mainly with the dynamic class construction and the impact on performance. Introducing additional code path in order to support a backleveled

Re: MySQL ignoring BigDecimal precision.

2009-08-03 Thread Craig L Russell
." I'm using InnoDB tables on MySQL 5.1.32 Thanks Chris Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Shouldn't cascade all delete orphans?

2009-08-03 Thread Craig L Russell
w orphaned. I know I can programmatically delete the asset entity but I want to know if this the expected behaviour? Thanks for any advice Chris Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JD

Re: Persist issue in multithreaded environment

2009-08-03 Thread Craig L Russell
this message in context: http://n2.nabble.com/Persist-issue-in-multithreaded-environment-tp3377510p3377741.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P

Re: Type of query's result

2009-07-28 Thread Craig L Russell
can't see it on the list... so I decided to write this one. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: openJPA generates select per row - impossible to use for simple select statements

2009-07-15 Thread Craig L Russell
lect and wrap works 1.5 sec. I’ve tried different query hints and a few openjpa versions, but with no result. -- View this message in context: http://n2.nabble.com/openJPA-generates-select-per-row---impossible-to-use-for-simple-select-statements-tp3261512p3261512.html Sent from the OpenJPA U

Re: openJPA generates select per row - impossible to use for select statements

2009-07-14 Thread Craig L Russell
ld not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases. Craig L Russell Architect, Sun Java Enterprise System http://db.apa

Re: JoinColumn: match its length to the referenced column?

2009-07-08 Thread Craig L Russell
CHAR(4). But the foreign key column is defined as being VARCHAR(255). EclipseLink handles this the way I would expect; I haven't tried Hibernate. Should I file a JIRA on this? Sure. Thanks, Craig Thanks, Laird Craig L Russell Architect, Sun Java Enterprise System http://db.

Re: Bug confirmation? Cannot have more than one unique column

2009-07-08 Thread Craig L Russell
identifier. Can someone confirm that this is a bug, and, if so, I will enter it into JIRA. Thanks, Laird Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic

Re: [VOTE] OpenJPA Logo Contest

2009-07-07 Thread Craig L Russell
ails. Voting: Will occur from July 1 through July 14. Winner: Will be announced on or after July 15. [1] http://cwiki.apache.org/openjpa/logo-contest.html -Donald Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com

Re: Best practice to avoid duplicates on @Column(unique=true)

2009-06-19 Thread Craig L Russell
just lock the range that you query for... Ask your database vendor. Craig David Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Use getters/setters only

2009-06-16 Thread Craig L Russell
ccess for non-abstract classes, you can't put business logic into the accessors because this interferes with the persistence implementation's use of the accessors. HTH, Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ

Re: Can we have an entity with no @Id?

2009-05-20 Thread Craig L Russell
this message in context: http://n2.nabble.com/Can-we-have-an-entity-with-no-%40Id--tp2945752p2946693.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A g

Re: @Version annotated Field not included in SELECT (prepstmnt)

2009-05-20 Thread Craig L Russell
instatiated. Any suggestion, even if it is "this is correct behaviour, because ..." would be appreciated. Thanx, Best regards, Heiko If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your c

Re: strange JPA Enhance stack

2009-05-19 Thread Craig L Russell
has say just one class to enhance and see if that works through you build system. I am thinking that it may be a classpath or library problem. David -- View this message in context: http://n2.nabble.com/strange-JPA-Enhance-stack- tp2912505p2933425.html Sent from the OpenJPA Users mailing

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Craig L Russell
17:33 -0700 Von: Craig L Russell An: users@openjpa.apache.org Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse Hi Naomi, On May 18, 2009, at 8:34 AM, naomi-...@gmx.de wrote: Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and man

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Craig L Russell
r 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-11 Thread Craig L Russell
pert Group Member Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: TABLE_PER_CLASS does not work as described in JSR-200 (JPA-1.0)

2009-05-07 Thread Craig L Russell
know why? I use openjpa-1.2.0. -- View this message in context: http://n2.nabble.com/TABLE_PER_CLASS-does-not-work-as-described-in-JSR-200-%28JPA-1.0%29-tp2828426p2828426.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://

Re: OpenJPA replaces a collection field

2009-04-29 Thread Craig L Russell
long version; @ManyToOne (optional=false,fetch=FetchType.LAZY,cascade=CascadeType.ALL) private ListHolder holder; protected ListMember() {} public ListMember(ListHolder holder) { this.holder = holder; holder.getMembers().add(this); } } Craig L Russell Architec

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
reason, I think it's worth a JIRA to make sure it isn't a bug. Would it be useful to create a small example and post it here? Yes. Craig - Paul On 4/13/2009 7:41 PM, Craig L Russell wrote: Hi Paul, On Apr 13, 2009, at 5:15 PM, Paul Copeland wrote: Craig - Thanks for the resp

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
ify the code and the behavior that the code exposes. Craig - Paul (other comments below) On 4/13/2009 4:18 PM, Craig L Russell wrote: Hi Paul, On Apr 13, 2009, at 9:04 AM, Paul Copeland wrote: Are there any responses from the OpenJPA experts on my two assertions below? If the assertio

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
if you're looking to update only the other side of a relationship you're in trouble unless you use some OpenJPA special techniques. Craig If the experts believe either of these assertions are incorrect then I definitely want to investigate further. - Paul (further comments below)

Re: Does OpenJPA replace Collections?

2009-04-09 Thread Craig L Russell
r more. I don't think you have given a reason to require initializing the Collection at construction time or at first access -- there are reasonable aesthetic and performance arguments either way. - Paul On 4/9/2009 7:01 AM, Craig L Russell wrote: Hi Paul, I like to think of entities

Re: Does OpenJPA replace Collections?

2009-04-09 Thread Craig L Russell
cascade=CascadeType.PERSIST) private List myPcList = new ArrayList(); List getMyPcList() { return myPcList; } Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O,

Re: detachment of fetch-groups doesnt work

2009-04-09 Thread Craig L Russell
but as soon as i leave my DAO, its lost. --- regards Marc Logemann http://www.logemann.org http://www.logentis.de -- Ted Leung ted...@sfu.ca I can speak Canadian, American,

Re: Does OpenJPA replace Collections?

2009-04-08 Thread Craig L Russell
On Apr 8, 2009, at 2:18 AM, Craig L Russell wrote: On Apr 7, 2009, at 11:10 PM, Paul Copeland wrote: Can OpenJPA replace a Collection when it is loaded? With the code below when the list is initially empty you need to create a List (ArrayList) so you can add elements to it. When I

Re: Does OpenJPA replace Collections?

2009-04-08 Thread Craig L Russell
t;, fetch=FetchType.LAZY, cascade=CascadeType.PERSIST) private List myPcList = new ArrayList(); List getMyPcList() { return myPcList; } Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gas

Re: Multiple join fetches

2009-04-06 Thread Craig L Russell
and also not guaranteed to fetch all instances in one database round trip. But it might work for you. Craig Thanks. -- Daryl Stultz _ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:da...@6degrees.com Craig L Russell Archite

Re: enum = null becomes blank string in db

2009-04-03 Thread Craig L Russell
x27;re still persisting a null value then it's definitely a bug. -mike On Fri, Apr 3, 2009 at 1:51 PM, Craig L Russell wrote: Hi Adam, Sounds like a bug. Can you please file a JIRA? Thanks, Craig On Apr 3, 2009, at 9:26 AM, Adam Hardy wrote: Just tested this with static enhancemen

Re: enum = null becomes blank string in db

2009-04-03 Thread Craig L Russell
write first of all? Admittedly I have yet to test it with pre-enhanced beans but I figured it would be the same (or is that a completely different code base?) Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good J

Re: how to store collection of enums as strings

2009-03-31 Thread Craig L Russell
vate Set myEnums=new HashSet(); -- Ted Leung ted...@sfu.ca It's time for a new bike when the bulb in your shift light burns out. Craig L Russell Architect, Sun Ja

Re: Is JPA 2 going to have something like JAXBs @XmlJavaTypeAdapter ?

2009-03-30 Thread Craig L Russell
have OpenJPA map it into a STRING. It looks like there is no chance of getting this into JPA 2 since they are in final draft. I just can't imagine such a useful tool *not* existing in a powerful API like JPA, so what gives? Have I missed something fundamental? Thank you,

Re: What is ManagedInterface

2009-03-09 Thread Craig L Russell
Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Oracle LONG datatypes as persistent field problem

2009-03-05 Thread Craig L Russell
rom the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

Re: Quick question re date, time, timestamp or java.util.Date/Calendar

2009-03-05 Thread Craig L Russell
or properties of these types." Is the OpenJPA interpretations deliberately including Timestamp or is that considered an OpenJPA feature? Is there any change in JPA 2? Also, can anyone give a URL for the JPA 2 spec pdf? Google turned up nothing. Craig L Russell Architect, Sun Java Enterpr

Re: How to get beter stacktraces????

2009-02-23 Thread Craig L Russell
eRemoteObject.java: 427) -- View this message in context: http://n2.nabble.com/How-to-get-beter-stacktraces-tp2375022p2375201.html Sent from the OpenJPA Users mailing list archive at Nabble.com. Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:c

Re: Strange error Please ensure that your database records are in the correct format

2009-02-12 Thread Craig L Russell
, it might be very hard to get anyone to look at the problem. Craig Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature

[Travel Assistance] Applications for ApacheCon EU 2009 - Now Open

2009-01-23 Thread Craig L Russell
-- - Craig L Russell Architect, Sun Java Enterprise System http://db.apache.org/jdo 408 276-5638 mailto:craig.russ...@sun.com P.S. A good JDO? O, Gasp!

  1   2   3   >