ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Kennedy, Dan
Hi, I'm using the ReverseMappingTool to reverse an Oracle schema. When I do this everything works great, except the entities it generates do not include the actual table name. So, for example, if I've got a table called DEPARTMENT_STORE it creates an entity like: entity

Re: ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Abe White
This sounds like something that was fixed a while ago. What version of OpenJPA are you using? ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries

RE: ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Kennedy, Dan
I'm using 0.9.6. Isn't that the latest? -Original Message- From: Abe White [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 11:21 AM To: open-jpa-dev@incubator.apache.org Cc: Kennedy, Dan Subject: Re: ReverseMappingTool doesn't include table/column names in entities This

RE: ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Patrick Linskey
That's the latest release, but it came out a few months ago. The 0.9.7 snapshot has a bunch of bugfixes etc. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may

[jira] Commented: (OPENJPA-123) Test framework should allow tests that are expected to fail to be checked in

2007-02-01 Thread Dain Sundstrom (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469545 ] Dain Sundstrom commented on OPENJPA-123: You can list excluded tests in the maven pom. If you are using

Unknown primary key

2007-02-01 Thread Dain Sundstrom
Does JPA or OpenJPA have support for what is called unknown primary key in the EJB CMP 2.0 spec. An unknown primary key is the pk of an entity bean that does not have a field (or abstract getter/setter) for a primary key. Instead the framework adds a virtual field to the bean that

[DISCUSS] Move to TestNG?

2007-02-01 Thread Patrick Linskey
Hi, According to the discussion at https://issues.apache.org/jira/browse/OPENJPA-123, it looks like TestNG's concept of test groups could let us easily create tests that are expected to fail, and exclude them from test runs until the corresponding behavior is fixed / feature is implemented. What

[jira] Updated: (OPENJPA-123) Test framework should allow tests that are expected to fail to be checked in

2007-02-01 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-123: I think that I prefer moving to TestNG; I like the idea of keeping the information about

Re: [DISCUSS] Move to TestNG?

2007-02-01 Thread Dain Sundstrom
My only concern is IDE support and specifically the IDE I use intellij. Does this work as a test case type in IntelliJ and Eclipse? If so, I don't really care which framework we use. -dain On Feb 1, 2007, at 11:08 AM, Patrick Linskey wrote: Hi, According to the discussion at

Re: [DISCUSS] Move to TestNG?

2007-02-01 Thread Kevin Sutter
I see that they have a plugin for Eclipse, but I haven't tried it yet. It doesn't look like it supports IntelliJ. On the surface, the conversion and usage looks doable and would satisfy the failed testcase problem. My question is whether it's worth the effort. If we have a testcase that has

Re: [DISCUSS] Move to TestNG?

2007-02-01 Thread Dain Sundstrom
On Feb 1, 2007, at 11:39 AM, Kevin Sutter wrote: I see that they have a plugin for Eclipse, but I haven't tried it yet. It doesn't look like it supports IntelliJ. On the surface, the conversion and usage looks doable and would satisfy the failed testcase problem. We can exclude tests

Re: Unknown primary key

2007-02-01 Thread Dain Sundstrom
This looks good, but in my case I can't annotate the classes. Is there a way to specify this via XML or a property? -dain On Feb 1, 2007, at 11:42 AM, Patrick Linskey wrote: Yes, you can do this: http://incubator.apache.org/openjpa/docs/latest/manual/ manual.html#ref_g

[jira] Commented: (OPENJPA-119) EntityManager.clear() should not implicitly invoke the flush operation

2007-02-01 Thread Abe White (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469562 ] Abe White commented on OPENJPA-119: --- But, since I don't know how JDO is using the kernel, it's kind of difficult

Eol-style

2007-02-01 Thread Craig L Russell
This just in: If I have to do it individually to files, is there some way to ensure that any text file checked it gets this property set? Otherwise, we're bound to forget to set it frequently. Yes, it's a new feature in your ~/.subversion/config file, not yet documented in the Book.

[jira] Commented: (OPENJPA-119) EntityManager.clear() should not implicitly invoke the flush operation

2007-02-01 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469565 ] Kevin Sutter commented on OPENJPA-119: -- Sure, I can do the boolean parameter. I just thought a compile

INFO messages from JUnit tests in openjpa-persistence-jdbc

2007-02-01 Thread Craig L Russell
I get tons of output from the tests. Is there a way to change the log level to WARNING? RTFM reference? Thanks, Craig Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp! smime.p7s

RE: [DISCUSS] Move to TestNG?

2007-02-01 Thread Patrick Linskey
Cedric alleges that the IntelliJ integration is on par with JUnit in the current version, and Hani claims that upcoming IntelliJs will have even better support out-of-the-box. Personally, I run the tests via Maven. -Patrick -- Patrick Linskey BEA Systems, Inc.

RE: INFO messages from JUnit tests in openjpa-persistence-jdbc

2007-02-01 Thread Patrick Linskey
mvn test -Dopenjpa.loglevel=WARN, I believe. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries

Re: [DISCUSS] Move to TestNG?

2007-02-01 Thread Marc Prud'hommeaux
Here's a good article comparing TestNG with JUnit: http://www-128.ibm.com/developerworks/java/library/j-cq08296/ IMO, the groups feature is nice, but isn't necessarily sufficient to justify a lot of effort porting over tests (since we could always just check a system property before

RE: Eol-style

2007-02-01 Thread Patrick Linskey
So for OpenJPA, the [auto-props] section should include the following as well: *.java: svn:eol-style=LF *.properties: svn:eol-style=LF *.xml: svn:eol-style=LF I haven't tried this out yet, but TFM claims that those are the correct values. Sadly, as far as I can tell, this cannot be used to

Re: [DISCUSS] Move to TestNG?

2007-02-01 Thread Michael Dick
For what it's worth Marc is right. I've used testng via the surefire plugin as a front end to running jUnit tests. In my case I just tried to get them to run in parallel, but we should be able to use groups in the same manner. On 2/1/07, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: Here's a

RE: Unknown primary key

2007-02-01 Thread Patrick Linskey
Sadly, not currently. OpenJPA domain model extensions are not currently available in XML form. See OPENJPA-87 for a related issue. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with

Re: Unknown primary key

2007-02-01 Thread Abe White
Sadly, not currently. OpenJPA domain model extensions are not currently available in XML form. See OPENJPA-87 for a related issue. While this is true, I believe if you just don't declare any @Id fields we'll probably default to datastore identity automatically.

RE: ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Kennedy, Dan
I upgraded to openjpa-0.9.7-incubating-SNAPSHOT and still get the same results. By the way, thanks for your help so far. -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 1:09 PM To: open-jpa-dev@incubator.apache.org Subject: RE:

Re: ReverseMappingTool doesn't include table/column names in entities

2007-02-01 Thread Abe White
I upgraded to openjpa-0.9.7-incubating-SNAPSHOT and still get the same results. By the way, thanks for your help so far. I get table and column names when I run the tool. Are you sure you aren't looking at old output? Can someone else attempt to reproduce this problem?

[jira] Resolved: (OPENJPA-37) Support ant typedefs for OpenJPA tasks

2007-02-01 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey resolved OPENJPA-37. Resolution: Fixed Added antlib files. Usage: project taskdef

Re: INFO messages from JUnit tests in openjpa-persistence-jdbc

2007-02-01 Thread Craig L Russell
Hi, mvn test -Dopenjpa.loglevel=WARN Thanks for that, Patrick. When I use this, two things happen, as below. Using -Dopenjpa.Log=openjpa ( DefaultLevel=WARN ) turns off the INFO logging messages from the [resources:resources] part of the maven task. Apparently this isn't affected by the

RE: INFO messages from JUnit tests in openjpa-persistence-jdbc

2007-02-01 Thread Patrick Linskey
Running mvn -Dopenjpa.Log=openjpa ( DefaultLevel=WARN ) - Dopenjpa.loglevel=WARN install seems to work to set the level in the two different maven tasks, although I'm confused why there are two different properties used to control the log messages. Any ideas? The -Dopenjpa.loglevel

Re: INFO messages from JUnit tests in openjpa-persistence-jdbc

2007-02-01 Thread Marc Prud'hommeaux
Right. openjpa.loglevel=WARN is just converted to - Dopenjpa.Log=DefaultLevel=WARN. It'd be nice if you could just specify the latter from the console, but unfortunately surefire doesn't propagate system properties through to the forked Surefire test runner, so we need to special- case

Re: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Marc Prud'hommeaux
+ taskdef name=kodoc classname=org.apache.openjpa.ant.PCEnhancerTask/ Shouldn't that be openjpac? Or maybe just enhance? On Feb 1, 2007, at 2:03 PM, [EMAIL PROTECTED] wrote: Author: pcl Date: Thu Feb 1 14:03:31 2007 New Revision: 502374 URL:

[jira] Commented: (OPENJPA-115) Bottleneck(s) with using OpenJPA in a Container-managed environment

2007-02-01 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469604 ] Craig Russell commented on OPENJPA-115: --- Yes, null checking is an expected requirement when dealing with weak

Re: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Kevin Sutter
:-) His past comes back to haunt him... :-) Nice catch, Marc. On 2/1/07, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: + taskdef name=kodoc classname=org.apache.openjpa.ant.PCEnhancerTask/ Shouldn't that be openjpac? Or maybe just enhance? On Feb 1, 2007, at 2:03 PM, [EMAIL

[jira] Resolved: (OPENJPA-115) Bottleneck(s) with using OpenJPA in a Container-managed environment

2007-02-01 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Sutter resolved OPENJPA-115. -- Resolution: Fixed Changes committed to SVN. Bottleneck(s) with using OpenJPA in a

RE: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Patrick Linskey
Good catch. I changed it to openjpac. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and

Re: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Marc Prud'hommeaux
Actually, I think prefer enhance to openjpac, since if I understand antlib taskdefs correctly, won't they be prefixed with something like openjpa? If so, I think: openjpa:enhance src=${src}/ it more descriptive than: openjpa:openjpac src=${src}/ On Feb 1, 2007, at 3:04 PM,

RE: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Patrick Linskey
They're only prefixed if you provide a URN for them when you include the taskdef. But I'm open to either name. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may

Exceptions thrown from callbacks

2007-02-01 Thread Patrick Linskey
Hi, There's a bit of ambiguity in the spec about what should happen when an exception is thrown from a callback. I propose that we change OpenJPA's behavior to always wrap exceptions thrown from callbacks in a RollbackException. Additionally, I propose that if a callback is thrown from a direct

Re: svn commit: r502374 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml

2007-02-01 Thread Dain Sundstrom
openjpac looks like open j pac to my eyes -dain On Feb 1, 2007, at 3:20 PM, Patrick Linskey wrote: They're only prefixed if you provide a URN for them when you include the taskdef. But I'm open to either name. -Patrick -- Patrick Linskey BEA Systems, Inc.

Re: Exceptions thrown from callbacks

2007-02-01 Thread Dain Sundstrom
On Feb 1, 2007, at 3:27 PM, Patrick Linskey wrote: 3.5.6: Lifecycle callback methods may throw runtime exceptions. A runtime exception thrown by a callback method that executes within a transaction causes that transaction to be rolled back. No further lifecycle callback methods will be

RE: Exceptions thrown from callbacks

2007-02-01 Thread Patrick Linskey
3.5.6: Lifecycle callback methods may throw runtime exceptions. A runtime exception thrown by a callback method that executes within a transaction causes that transaction to be rolled back. No further lifecycle callback methods will be invoked after a runtime exception is