• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Custom Module Configuration

    Development general discussion
    2
    3
    744
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CurtisC
      Curtis
      last edited by Curtis

      Re: New Developer Documentation
      Hello Terry,

      I'm currently following the example in the 4.0 documentation to crate the sample custom module and I ran into a problem. The com.infiniteautomation.mango.spring.db.AbstractTableDefinition file does not show up in my list of Dependencies and I'm wondering is this an old file because I do not see it in the Mango Core package.

      11a6e3cd-b844-4fad-bf40-5c651e77b81f-image.png

      What could I be missing?

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by

        @Curtis it looks like you ran into the same problem mentioned in a comment the original post. The docs are out of date so I suggest you look at the public modules repository for some examples.

        A good example of a module with additional SQL tables would be the Maintenance Events module here:

        https://github.com/MangoAutomation/ma-modules-public/tree/4.3.x/Maintenance Events

        Above is a link to the code that would be compatible with Mango 4.3.x

        By placing a create-Tables-H2.sql file with the table definitions into the resources folder JOOQ will generate the necessary Table and Record classes during the build for you to use your DAO implementation. See the MaintenanceEventDao class for how that works.

        Its sort of a chicken-egg problem where you first create the schema, perform a generate phase of the build and then have the generated source to continue your implementation.

        CurtisC 1 Reply Last reply Reply Quote 0
        • CurtisC
          Curtis @terrypacker
          last edited by

          @terrypacker
          Thank you

          1 Reply Last reply Reply Quote 0
          • First post
            Last post