3.2.3.1. Code Formatting
Some OpenJPA development tools generate Java code.
These tools share a common set of command-line flags for formatting their output to match your coding style.
All code formatting flags can begin with either the codeFormat or cf prefix.
-
-codeFormat./-cf.tabSpaces <spaces>: The number of spaces that make up a tab, or 0 to use tab characters. Defaults to using tab characters. -
-codeFormat./-cf.spaceBeforeParen <true/t | false/f>: Whether or not to place a space before opening parentheses on method calls, if statements, loops, etc. Defaults tofalse. -
-codeFormat./-cf.spaceInParen <true/t | false/f>: Whether or not to place a space within parentheses; i.e.method( arg). Defaults tofalse. -
-codeFormat./-cf.braceOnSameLine <true/t | false/f>: Whether or not to place opening braces on the same line as the declaration that begins the code block, or on the next line. Defaults totrue. -
-codeFormat./-cf.braceAtSameTabLevel <true/t | false/f>: When thebraceOnSameLineoption is disabled, you can choose whether to place the brace at the same tab level of the contained code. Defaults tofalse. -
-codeFormat./-cf.scoreBeforeFieldName <true/t | false/f>: Whether to prefix an underscore to names of private member variables. Defaults tofalse. -
-codeFormat./-cf.linesBetweenSections <lines>: The number of lines to skip between sections of code. Defaults to 1.
java org.apache.openjpa.enhance.ApplicationIdTool -cf.spaceBeforeParen true -cf.tabSpaces 4