BE Design with shared TT
 
Forums / SmartComponent Library - Developer Forum / BE Design with shared TT

BE Design with shared TT

5 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    09 Sep 2021
    Link to this post
    When designing a BE if we have a child table that will be used in other BE's should we point the TT package to its own package?

    For example, we have an Item Business Entity with the following tables:
    • Item (parent)
    • Upc
    • VendorProduct

    The Upc and VendorProduct are also used by other BE's. When I designed the BE after dropping the Upc on the design canvas I changed the temp table path as well as well as table package name from Osprey\Pos\Item to Osprey\Pos\Upc.

    When I generate the BE all the classes / include files are generated where they should be but the ItemDatasetModel_Generated does not compile due to the UpcTableModel definition. Since it does not have the full package name it requires a USING for Osprey.Pos.Upc

    Am I going about this incorrectly?
  2. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    12 Sep 2021 in reply to Roger Blanchard
    Link to this post
    Hi Roger, 

    had a quick look at the source code of the generator and that seems to be a limitation of the ModelClassGeneratorPlugin class that should be easy to fix. I'll log a ticket for that. 
  3. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    13 Sep 2021 in reply to Mike Fechner
    Link to this post
    FYI - this issue has been resolved now. 
  4. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    13 Sep 2021 in reply to Mike Fechner
    Link to this post
    Thanks Mike.

    I assume then that the way I designed that BE would be the recommended approach as to allow multiple BE's to use the same TT.
  5. Patrik Wikström
    Patrik Wikström avatar
    68 posts
    Registered:
    15 Oct 2018
    07 Oct 2021
    Link to this post
    I think this is what I tried to ask before:
    https://www.consultingwerk.com/support/forum/smartcomponent-library---developer-forum/common-tt-in-be-design---best-practices
5 posts, 1 answered