Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1178

pojogen-maven-plugin generates code that can't be compiled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.3.0
    • None
    • odata4-ext
    • None

    Description

      If the `CsdlProperty` name contains hyphen character, for example my-column , the plugin generates corresponding java class attribute with getter and setter :

      @org.apache.olingo.ext.proxy.api.annotations.Property(name = "my-column"..) 
      String  my-column;
      String getMy-column();
      void setMy-column(String my-column);
      

      This code can't be compiled. Please normalize the attribiute name while processing the template.
      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            furic Furer Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: