ZhiYouToolkit Help

Generate MyBatis Where Tag

How to use

  • Prerequisite: The mouse cursor must be within a Java class or XML file with properties.

  • Usage: Right-click to open the context menu, then click Extended Features... >> Generate Where Tag.

  • Default shortcut keyCtrl + Alt + 7 >> then press 1

Note

  • When the mouse cursor is in a Java class, the current Java class properties will be used by default to generate the list of properties corresponding to table fields, and the generated Where tag will be copied to the clipboard.

  • When the mouse cursor is in an XML file, you need to select a Java class. Then, the properties from the selected Java class will be used to generate the list of properties corresponding to table fields, and the generated Where tag will be inserted directly at the mouse cursor position.

  • The table alias, class alias, and field names in the displayed table can all be customized and changed.


Where
Last modified: 18 June 2024