openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Using ReverseMappingTool.run(...) to generate Java strings?
Date Mon, 09 Dec 2013 22:57:29 GMT
I would rather add an additional static run method[1] that has an
additional parameter to the existing parameter list and that can be used
for output.

http://pastebin.com/jZ7vUtM8

Thanks,
Rick



On Mon, Dec 9, 2013 at 4:29 PM, Aron L <a.lurie+ojpa@gmail.com> wrote:

> Rick,
>
> That could work but I would end up using JDBCConfiguration in an unusual
> way
> to get the result I want, something like this:
>
> http://pastebin.com/Uqngcuaj
>
> I'm not sure if this would be a lasting fix; there's nothing in the method
> contract that ensures the added value will be propagated through the other
> run methods.
>
> An easier (for me) way to do this might be adding a flag of type Map to
> ReverseMappingTool.Flags, and if that flag is not null, calling
> tool.recordCode(Map) instead of tool.recordCode() where I linked before.
> However, I could see where this might be an issue as the flag wouldn't
> really be usable from the command line.
>
> Thanks,
> Aron
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Using-ReverseMappingTool-run-to-generate-Java-strings-tp7585730p7585750.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message