diff --git a/modelina-website/src/components/playground/options/JavaGeneratorOptions.tsx b/modelina-website/src/components/playground/options/JavaGeneratorOptions.tsx index 0085018273..7282091627 100644 --- a/modelina-website/src/components/playground/options/JavaGeneratorOptions.tsx +++ b/modelina-website/src/components/playground/options/JavaGeneratorOptions.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { debounce } from 'lodash'; import { PlaygroundJavaConfigContext } from '@/components/contexts/PlaygroundConfigContext'; import Select from '@/components/Select'; +import InfoModal from '@/components/InfoModal'; interface JavaGeneratorOptionsProps { setNewConfig?: (queryKey: string, queryValue: string) => void; @@ -101,8 +102,15 @@ class JavaGeneratorOptions extends React.Component<

Java Specific options

-
  • -
  • + +

    + In Java, a package name is a way to organize and group related classes and interfaces. It is a naming convention that helps prevent naming conflicts and provides a hierarchical structure to the Java codebase. +

    + A package name is written as series of identifiers separated by dots ('.'). Each identifier represents a level in the package hierarchy. For example, a package name could be 'com.example.myapp'. +

    +
    +
  • -
  • -
  • + +

    + When you enable the "Include Jackson serialization" option, it means that the code generator will include the necessary annotations from the Jackson library in the generated code. These annotations are used to configure and control how Java objects are serialized to JSON and deserialized from JSON. +

    + Annotations in Java are represented by the @ symbol followed by the annotation name. +

    +
    +
  • -
  • -
  • + +

    + This option indicates whether the marshal and unmarshal functions would be included in the generated code or not +

    + the defalult value is false +

    + marshal - this function takes an instance of the class and return a JSON object. +

    + unmarshal - this function takes a JSON object and returns an instanve of the class. +

    +
    +
  • -
  • -
  • + +

    + This option allows you to switch between rendering collections as List type or Array. +

    + The default value is Array. +

    +
    +
  • -
  • -
  • + +

    + In Java, the "hashCode()" method is used to generate a unique numeric value (hash code) for an object. The default implementation of hashCode() in the Object class generates hash codes based on the memory address of the object, which may not be suitable for all classes. +

    + When you enable the "Include Overwrite HashCode Support" option, it means that the code generator will automatically generate a customized implementation of the hashCode() method for the class you are working with. Instead of using the default implementation. +

    +
    +
  • -
  • -
  • + +

    + In Java, the "equals()" method is used to determine if two objects are equal based on their content rather than their memory addresses. The default implementation of equals() in the Object class performs a reference equality check, meaning it only returns true if the compared objects are the same instance in memory. +

    + When you enable the "Include Overwrite Equal Support" option, it means that the code generator will automatically generate a customized implementation of the equals() method for the class you are working with. Instead of using the default implementation. +

    +
    +
  • -
  • -
  • + +

    + In Java, the "toString()" method is a built-in method defined in the Object class and inherited by all other classes. Its purpose is to provide a string representation of an object. By default, the toString() method in the Object class returns a string that includes the class name, an "@" symbol, and the hexadecimal representation of the object's hash code. +

    + When you enable the "Include Overwrite toString Support" option, it means that the code generator will automatically generate a customized implementation of the toString() method for the class you are working with. Instead of using the default implementation. +

    +
    +
  • -
  • -
  • + +

    + Enabling this option will include the description of the properties as comments in the generated code. +

    + The default value if false. +

    +
    +
  • -
  • -
  • + +

    + By using the 'javax.validation.constraints' annotations, you can ensure that the data in your Java object adheres to specific rules and constraints. This helps in validating user input, ensuring data integrity, and facilitating error handling and validation reporting. +

    +
    +