[ 
https://issues.apache.org/jira/browse/OPENJPA-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Lee updated OPENJPA-532:
-------------------------------

    Attachment: OPENJPA-532.patch

In Configurations.runAgainstAllAnchors() method, all the persistence units 
(anchors) from the configuration paths are first identified and  each anchor is 
then processed by the tool's runnable class. If no persistence unit is found, 
this method just returns back to the tool's main().

For schema and possibly other supported tools, persistence unit is not a 
required parameter. E.g. schema's -reflect action.  

I have attached a patch of the Configurations class allowing the parent tool to 
process the original tool semantics if no persistence unit (anchor) is found. 
In the case of SchemaTool, it will perform the desire function.

Comments and suggestions are appreciated.

Thanks,
Albert Lee.


> SchemaTool performs no function if no pu is found.
> --------------------------------------------------
>
>                 Key: OPENJPA-532
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-532
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 1.1.0
>            Reporter: Albert Lee
>            Assignee: Albert Lee
>             Fix For: 1.1.0
>
>         Attachments: OPENJPA-532.patch
>
>
> SchemaTools performs no function if no pu is found. It just returns without 
> any message or feedback. E.g.
> c:\> java org.apache.openjpa.jdbc.schema.SchemaTool -ConnectionDriverName 
> com.ibm.db2.jcc.DB2Driver -ConnectionURL jdbc:db2:WSTEST -ConnectionUserName 
> leealber -ConnectionPassword ******** -f schema.out -action reflect
> c:\>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to