Menu

#879 Enhance DBMapping annotations for Table name

Elbert
closed
7
2015-01-15
2014-12-18
drrwebber
No

Need to add annotation of type DBMapping with the Table name on the root element for the table structure in the XML.

That way we can generate the Hibernate @Table(name="sqlTable") annotations

Discussion

  • drrwebber

    drrwebber - 2015-01-13

    This is critical for 3.2.1 release. Also noticed that in the "Add Annotation" drop down choices for Table level - there is no DBMapping choice. What we need is to be able to add this detail:

    <camed:annotation item="//ECFS-database/SpsDetails">
      <camed:documentation type="Definition">SPS table details</camed:documentation>
      <camed:documentation type="DBMapping">ECFS.SPS table</camed:documentation>
    </camed:annotation>
    

    Notice appending the word ' table' after the table name from the SQL -the XSLT is looking for that to ensure it has the table mapping and not regular DBMapping for column.

     
  • drrwebber

    drrwebber - 2015-01-13
    • Priority: 5 --> 7
     
  • drrwebber

    drrwebber - 2015-01-14

    OK - I fixed the XSLT - so it is now add the DBMapping - that was easy. Now only need to add the choice to the Java dropdown. Will look for that next.

     
  • Serge Leontiev

    Serge Leontiev - 2015-01-14

    David,

    It's working as designed. DBMapping annotation can be set only through DND, not manually.

     
  • drrwebber

    drrwebber - 2015-01-15

    Changed XSLT to pull DBMapping table details from first child elements.

     
  • drrwebber

    drrwebber - 2015-01-15
    • status: open --> closed
     

Log in to post a comment.