How to enable schema log ?

2011-03-24 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I got this in an error message : Enable the org.apache.openjpa.jdbc.Schema logging category to see messages about schema data. I can't find what to add in the persistence.xml if it is there something should be added... I already added the following line but I feel it is something else :

Re: No error message while I would wait for one

2011-03-07 Thread Jean-Baptiste BRIAUD -- Novlog
JIRA done : https://issues.apache.org/jira/browse/OPENJPA-1956 Sorry for not being able to add a patch. On 5 mars 2011, at 23:41, Rick Curtis wrote: +1 gets my vote. Go ahead an open a JIRA and a patch would be nice. :) Thanks, Rick On Sat, Mar 5, 2011 at 2:46 PM, Jean-Baptiste

No error message while I would wait for one

2011-03-05 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, 2 persistent classes : A B extends A. A have the primary key : id. I was using fetch plan to include id but with the wrong class. I badly added a fetch plan for B.class, id. id was null, because it was finally not included in the fetch plan. This is OK but when I build the fetch plan, why

Re: Error message improvement suggestion

2011-02-21 Thread Jean-Baptiste BRIAUD -- Novlog
into doing a manual build. Sorry this took so long, I'll reply to this thread when I know it's in the maven repo. -mike On Wed, Feb 9, 2011 at 7:30 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Would it be in the 2.0 branch trunk currently ? In other words, if I

Error message improvement suggestion

2011-02-07 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list, I got the following exception : Caused by: openjpa-2.0.1-r422266:989424 nonfatal user error org.apache.openjpa.persistence.ArgumentException: cant-set-value at org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy.insert(HandlerFieldStrategy.java:132) at

Re: MySQL bug 50174 and OpenJPA ant task.

2010-11-09 Thread Jean-Baptiste BRIAUD -- Novlog
Yes. On 8 nov. 2010, at 21:51, Rick Curtis wrote: do you have connection pooling configured? Thanks, Rick On Mon, Nov 8, 2010 at 2:21 PM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Hi, http://bugs.mysql.com/bug.php?id=50174 This MySQL bug is quite annoying

MySQL bug 50174 and OpenJPA ant task.

2010-11-08 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, http://bugs.mysql.com/bug.php?id=50174 This MySQL bug is quite annoying : Under certain CPU load level (witch is unknown) under *nix (any unix apparently), the connection to the DB failed. This bug is tagged by MySQL as low priority because there is a workaround. The only workaround is to

Re: Sharing JDBC connection

2010-10-19 Thread Jean-Baptiste BRIAUD -- Novlog
I would add some (obvious ? if yes, sorry) things : 0. Yes, you're playing with fire, but that's really fun and very powerful as long as you don't start a forest fire :-) 1. Ensure connection is at last closed or put back in the pool. 2. Test with and without a pool (or adjust value on pool) to

Re: [VOTE] Apache OpenJPA 2.0.1 release candidate

2010-08-27 Thread Jean-Baptiste BRIAUD -- Novlog
+1 On 26 août 2010, at 17:55, Donald Woods wrote: I've staged a release candidate for OpenJPA 2.0.1 with the following artifacts up for a vote: SVN source tag (r989424) made from the 2.0.x branch: https://svn.apache.org/repos/asf/openjpa/tags/2.0.1/ Source release:

Re: Enhance : clarification needed

2010-08-19 Thread Jean-Baptiste BRIAUD -- Novlog
It works fine ! I can now choose the persistence unit for enhancing at build-time. Thanks. On 17 août 2010, at 15:42, Pinaki Poddar wrote: I'm unable to find the information about how to specify the persistence unit to use from ant. It might not be possible. path

Re: Enhancing with Eclipse

2010-08-12 Thread Jean-Baptiste BRIAUD -- Novlog
On 10 août 2010, at 18:16, Rick Curtis wrote: bin is managed by Eclipse : src/META-INF should be OK if I manage to have only one persistence.xml file. Correct. Eclipse will automatically move src/META-INF to bin. Very good idea, but how to tell openjpac with persistence unit to use ?? I

Enhance : clarification needed

2010-08-12 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm using Enhance for a while now, but still have questions : * Why do enhance need persistence.xml, no DB connection should be done during enhance, right ? * Why enhance allow/need to specify .java files, only .class are enhance, and .class must be there before enhancement, right ? *

Re: Enhance : clarification needed

2010-08-12 Thread Jean-Baptiste BRIAUD -- Novlog
...@gmail.comwrote: Hi, I think you mean the command line PCEnhancer. If you're referring to one of the other tools (Eclipse / Maven plugin) my answers probably aren't right. On Thu, Aug 12, 2010 at 6:07 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Hi, I'm using Enhance

Re: Enhance : clarification needed

2010-08-12 Thread Jean-Baptiste BRIAUD -- Novlog
On 12 août 2010, at 15:19, Jean-Baptiste BRIAUD -- Novlog wrote: Yes, I try the # syntax without success from ant file. The error message is can't found file blabla/persistance.xml#p2 Also, I have a persistence.xml file with several persistence uni, enhance task do the job, no way to know

Enhancing with Eclipse

2010-08-10 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm trying to set an OpenJPA project with Eclipse (I'm currently using IntelliJ). I checked that page : http://openjpa.apache.org/enhancement-with-eclipse.html and decided to go with custom Ant builder. Where is the persistent.xml file ? Unfortunately, the file is not mentioned in the

Re: downloads: broken links

2010-08-10 Thread Jean-Baptiste BRIAUD -- Novlog
confirmed. On 10 août 2010, at 17:42, Christiaan wrote: The links under Pre-packaged binaries for SNAPSHOT releases are available in the snapshot repository at the following locations : on http://openjpa.apache.org/downloads.html don't work for me. kind regards, Christiaan --

Re: Enhancing with Eclipse

2010-08-10 Thread Jean-Baptiste BRIAUD -- Novlog
openjpac with persistence unit to use ?? Thanks, Rick On Tue, Aug 10, 2010 at 9:55 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Hi, I'm trying to set an OpenJPA project with Eclipse (I'm currently using IntelliJ). I checked that page : http

Re: JPQL class lookup performance

2010-07-21 Thread Jean-Baptiste BRIAUD -- Novlog
Hi David, Very interesting ! In fact, one stack trace per class not found is enough, no need to repeat the error. A cache (a simple Map ?) should be OK. On 20 juil. 2010, at 21:08, David Minor wrote: Hi, In some performance analysis (via periodic thread dumps), we've noticed that roughly

Re: Fetch Plan ands collections mapped

2010-07-21 Thread Jean-Baptiste BRIAUD -- Novlog
3. Yes, it is possible to activate fetchplan dynamically, for only one request if you want. 2. No idea, I simply forbid lazy, why would you leave a lazy attribute ? It will cause an extra request that has a cost ... 1. I'm not sure in your exact context because we annotate at attribute level

Mailling list error

2010-07-20 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I got mailling list permanent error this morning. I'm even not sure this message will reach the list ... JBB.

Re: How to get selective columns only

2010-07-20 Thread Jean-Baptiste BRIAUD -- Novlog
Hi Marc, Lazy is static in the mapping (either annotation or xml file). This behavior can be amended at runtime, thanks to fetchplan. This is why OpenJPA really rocks, because the way to define what we want is dynamic by nature and lazy is a bad answer to that good dynamic need. This has

In reply to fetchplan question (was selective columns)

2010-07-20 Thread Jean-Baptiste BRIAUD -- Novlog
Hi Marc, Lazy is static in the mapping (either annotation or xml file). This behavior can be amended at runtime, thanks to fetchplan. This is why OpenJPA really rocks, because the way to define what we want is dynamic by nature and lazy is a bad answer to that good dynamic need. This has

Mailling list error (2)

2010-07-20 Thread Jean-Baptiste BRIAUD -- Novlog
OK it is not a permanent address error, my answer to Re: How to get selective columns only is considered as spam !!! In fact, any answer is now considered as spam, I have to write a new message in order to send it to the list. What can I do ?

Re: How to get selective columns only

2010-07-20 Thread Jean-Baptiste BRIAUD -- Novlog
choose : either fetchplan, either from query, both work but when it come to complex relation and not basic attributs, fetchplan is better. Fetchplan overide query : nothing in the query with a fetchplan that filter some attributes will do the filter even with a query without filter. On 20

Re: OpenJPA MySQL performance overhead

2010-07-13 Thread Jean-Baptiste BRIAUD -- Novlog
Enhance at build-time, not at run-time. Search the archive, I gave an ant script to do it. I'm not sure what out of the box really mean. I suggest you use high volume data and then an average time so you'll have the cruise speed only. I would also ensure any cache is disabled. On 13 juil. 2010,

@ManyToOne not optional - nullable

2010-07-13 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, Class A, has one attribute like the following : @ManyToOne(optional = true, cascade = CascadeType.ALL) @JoinColumn(name = B_ID) private B b = null; Not surprisingly, this is producing, in the table A, a column like the following : B_ID bigint(20) Yes NULL Note that the column

Re: @ManyToOne not optional - nullable

2010-07-13 Thread Jean-Baptiste BRIAUD -- Novlog
Hi Michael, It works exactly as you explained. I didn't spot that difference between optional and nullable before. Thanks. On 13 juil. 2010, at 20:09, Michael Dick wrote: Hi Jean-Baptiste, I think what you want is @Column(nullable=false) instead of marking it as optional=false.

Re: JPA for portable database management (and wishes for JPA 3.0)

2010-06-08 Thread Jean-Baptiste BRIAUD -- Novlog
add more database over time. What do you think ? On 5 juin 2010, at 13:26, Jean-Baptiste BRIAUD -- Novlog wrote: OK, let's imagine we'll have to do it. How will we describe it in OpenJPA ? Should we have some technical annotation like @NativeTrigger or should we have higher level

Re: JPA for portable database management (and wishes for JPA 3.0)

2010-06-05 Thread Jean-Baptiste BRIAUD -- Novlog
I know what do you mean but I really need to do that from Java like the = DBA would do in your scenario. I would love to do that using annotation with OpenJPA mappingtool. In fact native query are not portable by nature and also, trigger is = more static than dynamic like database schema is.

Re: JPA for portable database management (and wishes for JPA 3.0)

2010-06-05 Thread Jean-Baptiste BRIAUD -- Novlog
way OpenJPA code already use to detect database and have some branch in the code (command pattern rather than lots of if) so we could add more database over time. What do you think ? On 5 juin 2010, at 09:21, Jean-Baptiste BRIAUD -- Novlog wrote: I know what do you mean but I really need

Re: JPA for portable database management (and wishes for JPA 3.0)

2010-06-05 Thread Jean-Baptiste BRIAUD -- Novlog
Thanks for the pointer. Unfortunately, the implementation doesn't rely on native database triggers. There is only one things that could unlock the use of lifecycle for a legal audit system : the abilty to catch modification on entity done outside the JVM. I don't think this is possible = native

Re: JPA for portable database management (and wishes for JPA 3.0)

2010-06-04 Thread Jean-Baptiste BRIAUD -- Novlog
Unfortunately, lifecycle in JPA will not answer to the direct need of that triggers. I need triggers because our customer asked for *secure* audit trail. That audit trail must be operational for any data access, from or not from the Java application server. That must be done very strictly for

JPA for portable database management

2010-06-03 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, Is there a way to use JPA abstraction from Java code to manipulate database instances, triggers, stored procedure ? Before going to the complex scenario, simple things first : How can I create a database instance in a Java way : dev once, run everywhere ? I had to write some SQL to create

persistence.xml location

2010-06-02 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I thought the persistent.xml file should be in the META-INF folder of .war file due to some JPA/JEE normalization but it I do not place it in the classes folder of my war file, it doesn't work. Any idea or explanation ? Thanks.

Re: Ant based enhancement

2010-05-17 Thread Jean-Baptiste BRIAUD -- Novlog
If it can helps, here is a repost of the ant macrodef I use to enhance at buildtime. There is a weird thing around copying the persistence.xml as it was mentioned in the doc to do it knowing the writer didn't know why :-) So I did it too ... macrodef is really (really really) powerfull ant

Re: JPA 3.0

2010-05-15 Thread Jean-Baptiste BRIAUD -- Novlog
How do you generate classes dynamically (at runtime) in Java ??? Did you meant modifying the mapping at runtime for existing classes or did you meant producing new classes at runtime and using it just after that and still in the same JVM ? We are using OpenJPA 2.0 and are generating classes,

Re: After statting the server login time taking 2 minutes

2010-04-27 Thread Jean-Baptiste BRIAUD -- Novlog
Enhance at buildtime. Enhancing at runtime might be OK to start learning as it quicker to start coding but it comes with lots of problems and limitations. I would say enhancing at build time is not an option for any serious developments. Finally, enhancing at build time is only a matter of one

Lack of foreign key constraint

2010-04-02 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I just noticed that on the SQL file produced by OpenJPA to install DB schema, there are no integrity referential constraints. In other words, on relationship, there is no indication that one column is a foreign key. primary key are there but not foreign keys. Is it a problem (I didn't

Re: OpenJPA 2.0 vs 1.2

2010-03-22 Thread Jean-Baptiste BRIAUD -- Novlog
The only code I had to change is the method detach on the entityManager, it now return void, the object passed as a parameter is no more returned but changed by address. On Mar 22, 2010, at 21:12 , Kevin Sutter wrote: Hi Russell, There should be no reason to change code as you move from

@ElementCollection and @PersistentCollection

2010-03-15 Thread Jean-Baptiste BRIAUD -- Novlog
Hi What are the differences between @ElementCollection and @PersistentCollection ? I'm already using @PersistentCollection but I encountred @ElementCollection in the examples folder of OpenJPA 2.0.0 beta 2 in a embedded folder. At the end, I'm not sure to see a difference ... so I'm puzzled.

Re: Bug #1410 with 2.0.0 beta2

2010-03-12 Thread Jean-Baptiste BRIAUD -- Novlog
Found a workaround. https://issues.apache.org/jira/browse/OPENJPA-1410 On Mar 11, 2010, at 07:50 , Jean-Baptiste BRIAUD -- Novlog wrote: OK. On Mar 10, 2010, at 17:58 , Donald Woods wrote: The Fix Version is used to track which release(s) we are targeting a fix for while the status

Bug #1410 with 2.0.0 beta2

2010-03-10 Thread Jean-Baptiste BRIAUD -- Novlog
https://issues.apache.org/jira/browse/OPENJPA-1410 Added a comments : can reproduce using 2.0.0 Beta2 on Linux, not on OSX. This bug is tagged as opened which is right but fixed in version 2.0.0 which is wrong.

Re: Bug #1410 with 2.0.0 beta2

2010-03-10 Thread Jean-Baptiste BRIAUD -- Novlog
One mote detail : 32 or 64 bits JDK doesn't change anything. I was using MySQL 5.1.x On Mar 10, 2010, at 17:22 , Jean-Baptiste BRIAUD -- Novlog wrote: https://issues.apache.org/jira/browse/OPENJPA-1410 Added a comments : can reproduce using 2.0.0 Beta2 on Linux, not on OSX. This bug

Re: Bug #1410 with 2.0.0 beta2

2010-03-10 Thread Jean-Baptiste BRIAUD -- Novlog
, then the Fix Version denotes where it was actually fixed. If no one is actively or planning to work on an issue for a given release(s), then the Fix Version will be unknown/none, which means it is in the backlog/wish-list. -Donald On 3/10/10 11:22 AM, Jean-Baptiste BRIAUD -- Novlog

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-02 Thread Jean-Baptiste BRIAUD -- Novlog
. The BetaX releases should not be required to have certain JIRAs fixed. Unless we're talking about regressions. But, in this case, the problem has been around for a while and, thus, should not hold up a BetaX release. Kevin On Mon, Mar 1, 2010 at 10:17 AM, Jean-Baptiste BRIAUD -- Novlog j

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-01 Thread Jean-Baptiste BRIAUD -- Novlog
Leung. Maybe we can hook up Ted with a committer to get this resolved. Kevin On Thu, Feb 25, 2010 at 3:59 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: This bug doesn't look like to be corrected : http://issues.apache.org/jira/browse/OPENJPA-1020 Could you please

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-02-25 Thread Jean-Baptiste BRIAUD -- Novlog
This bug doesn't look like to be corrected : http://issues.apache.org/jira/browse/OPENJPA-1020 Could you please confirm the status of than OPENJPA-1020 ? I would be tempted to vote -1 as that bug is very annoying On Feb 24, 2010, at 23:55 , Donald Woods wrote: I've staged a release candidate

Re: OpenJPA trunk (2.0.0-SNAPSHOT) now requires Java SE 6

2010-02-25 Thread Jean-Baptiste BRIAUD -- Novlog
What do you mean by toolchains ? On Feb 24, 2010, at 23:48 , Stephen Connolly wrote: Have you considered using toolchains to help dancing within the different jdk versions On 24 February 2010 22:40, Donald Woods dwo...@apache.org wrote: We've backtracked some on OPENJPA-1520 and no

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-02-25 Thread Jean-Baptiste BRIAUD -- Novlog
noticed that both a testcase and a potential patch have been provided by Ted Leung. Maybe we can hook up Ted with a committer to get this resolved. Kevin On Thu, Feb 25, 2010 at 3:59 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: This bug doesn't look like

Re: Confused about why Im getting this error

2010-01-19 Thread Jean-Baptiste BRIAUD -- Novlog
Maybe a classpath issue in the IDE project's config ? On Jan 18, 2010, at 02:15 , Thomas Polliard wrote: Doing an example trying to learn OpenJPA and JPA I ran into a strange problem. java.lang.ClassNotFoundException: com.arjuna.jta.JTA_TransactionManager java.lang.ClassNotFoundException:

Re: PersistentCollection bug. OpenJPA version to use.

2010-01-06 Thread Jean-Baptiste BRIAUD -- Novlog
That fix is in the trunk, will it be in the 1.2.2 branch ? On Jan 5, 2010, at 09:26 , Jean-Baptiste BRIAUD -- Novlog wrote: Thanks a lot. Unfortunately, I'm afraid the trunk would be too risky for production, isn't it ? That problem is now corrected in the trunk but I'll probably found new

Re: PersistentCollection bug. OpenJPA version to use.

2010-01-05 Thread Jean-Baptiste BRIAUD -- Novlog
for this problem in the trunk. Regards, Fay - Original Message From: Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com To: users@openjpa.apache.org Sent: Mon, January 4, 2010 4:43:59 AM Subject: Re: PersistentCollection bug. OpenJPA version to use. Any advices

PersistentCollection bug. OpenJPA version to use.

2009-12-30 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm facing a ClassCastException in the context of a PersistentCollection. It sound like exactly the behavior described here : http://issues.apache.org/jira/browse/OPENJPA-1020 This bug look like fix but without any OpenJPA fix version. Any news ? I'm using a 1.2.2 snapshot from september.

Re: sql errors when using SQLServer

2009-12-13 Thread Jean-Baptiste BRIAUD -- Novlog
there for OpenJPA : should the enhance process detect that redundancy ? Should it fails on error for that ? If yes, than it is a bug, if no, then it is a workaround :-) On Dec 11, 2009, at 18:22 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi the list, On my DEV machine I'm using MySQL, I use

Re: sql errors when using SQLServer

2009-12-13 Thread Jean-Baptiste BRIAUD -- Novlog
In fact, I'm just thinking the point 2 is not in any issue, I'm not sure it should be but I don't see why a unique constraint would make sense on primary key, so an error should be raised in that case. On Dec 13, 2009, at 21:38 , Jean-Baptiste BRIAUD -- Novlog wrote: Exactly the issues ! I'm

sql errors when using SQLServer

2009-12-11 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list, On my DEV machine I'm using MySQL, I use the MappingTool Ant task and its all OK. I produce the ddl sql file (for human reading) and also directly inject the schema using the MappingTool to the database (not using the generated sql file). On PROD, I have to deal with SQLServer. I

Re: sql errors when using SQLServer

2009-12-11 Thread Jean-Baptiste BRIAUD -- Novlog
there for OpenJPA : should the enhance process detect that redundancy ? Should it fails on error for that ? If yes, than it is a bug, if no, then it is a workaround :-) On Dec 11, 2009, at 18:22 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi the list, On my DEV machine I'm using MySQL, I use the MappingTool Ant

Re: Fetch plan question

2009-12-07 Thread Jean-Baptiste BRIAUD -- Novlog
with the find(id) method ? Something like that : em.createQuery(SELECT blablabla ...); ?? On Dec 7, 2009, at 15:20 , Jean-Baptiste BRIAUD -- Novlog wrote: I call this 2 methods before adding the fields I want but still it doesn't behave like expected. On Dec 7, 2009, at 13:00 , Michael Vorburger wrote

Re: Fetch plan question

2009-12-07 Thread Jean-Baptiste BRIAUD -- Novlog
On Dec 7, 2009, at 18:57 , Michael Vorburger wrote: Jean-Baptiste, Hi Michael, 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 we may share some ideas or some directions ... , so I refereshed

Re: Fetch plan question

2009-12-07 Thread Jean-Baptiste BRIAUD -- Novlog
: On Mon, Dec 7, 2009 at 3:48 PM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Now, thanks to you, I'm doing the following : final FetchPlan fetchPlan = entityManager.getFetchPlan(); fetchPlan.clearFetchGroups(); fetchPlan.clearFields

Re: Fetch plan question

2009-12-07 Thread Jean-Baptiste BRIAUD -- Novlog
HI Craig, Wow, that fetchPlan API is just far more powerful than I thought. I'll have to dig that, I'm sure our OpenJPA layer need improvements :-) OpenJPA really rocks ! On Dec 7, 2009, at 22:59 , Craig L Russell wrote: On Dec 7, 2009, at 1:44 PM, Jean-Baptiste BRIAUD -- Novlog wrote

Re: detach question

2009-12-05 Thread Jean-Baptiste BRIAUD -- Novlog
to be persist, not the other one before means that you only want the changes from after the tran begins to be persistent... If that assumption is correct, you'll need to get a new instance of ooo to make the changes on. -- Thanks, Rick On Thu, Dec 3, 2009 at 8:49 AM, Jean-Baptiste BRIAUD

Fetch plan question

2009-12-05 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm a big fan of fetch plan but there is something I don't understand. I have a root class with many link or relation. I'm using annotation and only annotation. Mose of the link are set with EAGER fetching and cascade ALL. This is done so by default, fetch will be eager and action will

detach question

2009-12-03 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list, Am i right on the following pseudo code ? // Note the detach. // getFullById come back with an instance of MyObject from the primary key final MyObject ooo = detach(getFullById(cc Here I modify (a lot) ooo but don't wan't the

Re: News from JPA 2.0 spec, thanks to Kevin Sutter

2009-10-23 Thread Jean-Baptiste BRIAUD -- Novlog
On Oct 21, 2009, at 16:52 , C N Davies wrote: It's disappeared! Yes, from here too ... I saved it in PDF, here's the file : [CUT]

Re: News from JPA 2.0 spec, thanks to Kevin Sutter

2009-10-23 Thread Jean-Baptiste BRIAUD -- Novlog
I managed to find the new URL : http://www.ibm.com/developerworks/websphere/techjournal/0909_col_sutter/0909_col_sutter.html Apparently, they just changed it ... On Oct 23, 2009, at 10:48 , Jean-Baptiste BRIAUD -- Novlog wrote: On Oct 21, 2009, at 16:52 , C N Davies wrote: It's

Novlog is one of the award-winnning 2009 from Reseau Entreprendre

2009-10-23 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list ! I can't resist to share that information with you. We presented yesterday afternoon our Novlog project to the board of examiners of the Reseau Entreprendre, a French private organization of entrepreneur. We were selected, so Novlog is one of the award-winnning 2009 from Reseau

News from JPA 2.0 spec, thanks to Kevin Sutter

2009-10-20 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list ! I'd like to share Kevin Sutter's article : http://www.ibm.com/developerworks/websphere/techjournal/0909_col_sutter/0909_col_sutter.html?ca=dgr-jw22S_TACT=105AGX59S_CMP=grjw22 Thanks Kevin (he's on the list). JBB.

Re: Custom proxy : idea review needed

2009-10-02 Thread Jean-Baptiste BRIAUD -- Novlog
, Aug 4, 2009 at 11:10 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: I can tell OpenJPA rocks, what I did had been tested impossible to do with other frameworks. Can we quote you on that? :-) Thanks so much for vote of confidence. Much appreciated. Kevin Thanks

News from bug 673 ?

2009-10-01 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm encoutering that exact bug : https://issues.apache.org/jira/browse/OPENJPA-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12619733 #action_12619733 Apparently, it is stil open since August 2008. Any news or status about that ? Any

Re: Generating DDL without connecting to Database (OpenJPA 1.2.1)

2009-09-29 Thread Jean-Baptiste BRIAUD -- Novlog
You might gain some reusability and better Ant code by using macrodef. http://ant.apache.org/manual/CoreTasks/macrodef.html Here is the macrodef I'm using for example : macrodef name=enhance description=This will enhance annotated Java entity classes. attribute

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
OK, so is there a way to have add pool behavior with only JDBC (without J2EE) ? On Sep 28, 2009, at 05:04 , C N Davies wrote: The doc says: EntityManagerFactory instances are heavyweight objects. Each factory might maintain a metadata cache, object state cache, EntityManager pool,

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
in a JEE environment. Checkout this blog post [1] that I wrote about this very issue a few months back. -Rick [1] http://webspherepersistence.blogspot.com/2009/01/jpa-connection-pooling.html On Mon, Sep 28, 2009 at 3:53 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: OK, so

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
Thanks. On Sep 28, 2009, at 16:18 , Rick Curtis wrote: http://commons.apache.org/dbcp/configuration.html Jean-Baptiste BRIAUD -- Novlog wrote: OK, it works but I'd like to set more options in the persistence.xml like the pool size. I didn't find how to set that up. Any link ? Thanks

Re: How to define @id in super class ?

2009-09-23 Thread Jean-Baptiste BRIAUD -- Novlog
Great ! as usual, OpenJPA rocks :-) On Sep 23, 2009, at 11:22 , Loïc Bresson -- Novlog wrote: J Grassel wrote: Hi, the problem you described sounds much like one I fixed in OPENJPA-1061. I see you are using openjpa-1.2.1-r752877:753278 -- can you move up to OpenJPA 1.2.x r791644 or later

Geronimo versions

2009-09-22 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, the version of Geronimo look older in OpenJPA 2 compared to OpenJPA 1.2.1 ... One can found geronimo-jpa_2.0_spec-1.0-EA8-20090902.182716-4.jar in OpenJPA 2 and geronimo-jpa_3.0_spec-1.0.jar in OpenJPA 1.2.1. Is it normal ? What are the differences ?

Schema tool from annotated class ?

2009-09-21 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'm trying to use the SchemaTool. I read in the doc all the needed information to make it work from XML to the database and also from database to XML but what about from annotated classes to the database ? If I found a way to go from annotated classed to XML, I can go back to well

Re: Schema tool from annotated class ?

2009-09-21 Thread Jean-Baptiste BRIAUD -- Novlog
Think I got it here : http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/ref_guide_mapping.html#ref_guide_mapping_mappingtool_examples On Sep 21, 2009, at 21:59 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi, I'm trying to use the SchemaTool. I read in the doc all the needed

Re: openjpac works fine in my ant script, but why ?

2009-09-15 Thread Jean-Baptiste BRIAUD -- Novlog
up ! I really want to understand, please, explain me :-) On Sep 9, 2009, at 10:11 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi the list, As soon as I try to use openjpac with ant to have built-time enhancement, it had worked fine. I try after that to have an learning/optimisation phase where

openjpac works fine in my ant script, but why ?

2009-09-09 Thread Jean-Baptiste BRIAUD -- Novlog
Hi the list, As soon as I try to use openjpac with ant to have built-time enhancement, it had worked fine. I try after that to have an learning/optimisation phase where I could reduce classpath and dependency to the stric minimum. Basically, its working but I'd like to understand why :-)

openjpac lots of questions

2009-09-08 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I read here http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/ref_guide_integration.html more precisely in that paragraphs : Example 12.6. Invoking the Enhancer from Ant Example 12.7. Invoking the Application Identity Tool from Ant This doesn't seem to have changed

Re: [NEWBIE] OpenJPA Cannot get id field returned

2009-09-08 Thread Jean-Baptiste BRIAUD -- Novlog
Did you try GenerationType.IDENTITY ? @GeneratedValue(strategy = GenerationType.IDENTITY) I think it should work with int but I prefer long instead. On Sep 8, 2009, at 10:56 , B.L. Zeebub wrote: Hi I have attached my entity definition below. This was created over a pre-existing database. I

Re: OpenJPA group on LinkedIn ...

2009-09-03 Thread Jean-Baptiste BRIAUD -- Novlog
Here's the URL : http://www.linkedin.com/groups?about=gid=723trk=anet_ug_grppro On Sep 3, 2009, at 14:16 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi, for those interested, there is an OpenJPA group on LinkedIn, just to be pround of OpenJPA logo on your profile ! I hope this could help

OpenJPA group on LinkedIn ...

2009-09-03 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, for those interested, there is an OpenJPA group on LinkedIn, just to be pround of OpenJPA logo on your profile ! I hope this could help promoting the techno. OpenJPA power ... :-)

Re: Issue Merging Object w/Null Timestamp when Detached State Field Disabled

2009-08-21 Thread Jean-Baptiste BRIAUD -- Novlog
Hi Jason, How are you enhancing your POJOs ? If you are not enhancing them at build time, please do it and give us some news. On Aug 21, 2009, at 05:38 , jason.m.hanna wrote: Hi All, I'm having some trouble with my OpenJPA application and could use some help. I've got a web-based

Re: Issue Merging Object w/Null Timestamp when Detached State Field Disabled

2009-08-21 Thread Jean-Baptiste BRIAUD -- Novlog
Are you sure the object is attached or at least merged and only after that you set the date to null ? In fact, I'm not, yet:-), OpenJPA expert but it look like the modification happened when detached and so is ignored. On Aug 21, 2009, at 13:37 , Jason Hanna wrote: Yes. Classes are enhanced

Re: Issue Merging Object w/Null Timestamp when Detached State Field Disabled

2009-08-21 Thread Jean-Baptiste BRIAUD -- Novlog
Sorry, but it is not clear at all to me. Apparently, the date is set to null outside the JVM ... am I right ? If yes, did you try to force it to null after and before the merge inside the JVM ? This test will answer is the problem is in the JVM or outside. It will also clearout OpenJPA

Re: Issue Merging Object w/Null Timestamp when Detached State Field Disabled

2009-08-21 Thread Jean-Baptiste BRIAUD -- Novlog
Ok, it sound like you don't want my advice ... I won't bother you more. set to null your field in Java code, remove the problem from your serialization/flex/other glue and prove the bug instead of trying to guess. On Aug 21, 2009, at 15:26 , Jason Hanna wrote: Yes, the date is set null

Re: Delete or merge, update or merge ?

2009-08-13 Thread Jean-Baptiste BRIAUD -- Novlog
up : any advice on that point ? On Aug 8, 2009, at 08:57 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi, say I have one instance to delete, an instance of B knowing that A contains one to many B. Should I merge A with one less B, that should delete the required B or should I explicitly

Delete or merge, update or merge ?

2009-08-08 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, say I have one instance to delete, an instance of B knowing that A contains one to many B. Should I merge A with one less B, that should delete the required B or should I explicitly delete that B with a delete by query or should I use the remove(thatB) API ? What are the differences

Re: Persist issue in multithreaded environment

2009-08-08 Thread Jean-Baptiste BRIAUD -- Novlog
did you had a look on that method on the EntityManager : setMultithreaded(boolean multi) Whether the entity manager or its managed instances are used in a multithreaded environment. It sound like EntityManager has to know wheter or not it is used with threads. Probably the

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

2009-08-06 Thread Jean-Baptiste BRIAUD -- Novlog
+1 Java 5 for 1.0.x and 1.3.x Java 6 for 2.x I think this could better for OpenJPA adoption. Concerning my own usage, I'm no more using Java 5 ... so I would be pleased with everything Java 6. On Aug 6, 2009, at 16:11 , Donald Woods wrote: Craig L Russell wrote: Database users are

Re: Dynamic fetch plan question

2009-08-05 Thread Jean-Baptiste BRIAUD -- Novlog
I already read that blog post and that's after reading it that I decided to try OpenJPA. I spent a lot of time as a consultant, in previous life, to educate people to that concept in the early 2002-2003. It was with OJB (as far as I remember) and I didn't know how to name that thing. That

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

2009-08-05 Thread Jean-Baptiste BRIAUD -- Novlog
The need is simple : get trees of partially valuated business object instances from the big graph of possible linked business classes. The fact came from old SQooL (a bad IT joke from old school and old SQL) : 1. only get back from DB what you need. 2. the other thing is to try to make as few

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

2009-08-05 Thread Jean-Baptiste BRIAUD -- Novlog
Any comments on that vision ? On Aug 5, 2009, at 16:33 , Jean-Baptiste BRIAUD -- Novlog wrote: The need is simple : get trees of partially valuated business object instances from the big graph of possible linked business classes. The fact came from old SQooL (a bad IT joke from old school

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

2009-08-05 Thread Jean-Baptiste BRIAUD -- Novlog
relationship, for example, one can specify a Fetch Plan to traverse the child-to-parent a fixed number of times -- a notion neither supported in SQL nor in JPA based FETCH JOIN. Jean-Baptiste BRIAUD -- Novlog wrote: Any comments on that vision ? On Aug 5, 2009, at 16:33 , Jean-Baptiste BRIAUD

Re: Custom proxy : idea review needed

2009-08-04 Thread Jean-Baptiste BRIAUD -- Novlog
, big big thanks ! -mike Jean-Baptiste BRIAUD -- Novlog wrote: Hi, My question is is there simpler things to do ? Please, review that idea and don't hesitate to comment ... Step 1 : I want partial object, not hashtables. It could be a Person with only some attributes having values. this concern

Re: Custom proxy : idea review needed

2009-08-04 Thread Jean-Baptiste BRIAUD -- Novlog
) at org.apache.openjpa.kernel.StateManagerImpl.fetch(StateManagerImpl.java: 740) at org.apache.openjpa.enhance.RedefinitionHelper $1.invoke(RedefinitionHelper.java:230) at $Proxy21.size(Unknown Source) On Aug 4, 2009, at 14:41 , Jean-Baptiste BRIAUD -- Novlog wrote: it is still failling

stupid question on OpenJPA's version : 1.2.1 = ready for production ?

2009-08-04 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, Suddenly, I'm wondering if OpenJPA version 1.2.1 is the lattest stable version or the dev version that will implement JPA 2.0 ? In other words, witch one is the stable production ready version : 1.2.1 or 1.1.0 ?

Re: stupid question on OpenJPA's version : 1.2.1 = ready for production ?

2009-08-04 Thread Jean-Baptiste BRIAUD -- Novlog
Sorry, I got the confirmation on the site : 1.2.1 is the lattest stable version witch I'm trying to use. Version 1.3.0 is the dev version that will correct bugd and version 2.0 is in millestone 8 for JPA 2. On Aug 4, 2009, at 15:05 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi, Suddenly, I'm

  1   2   >