Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bidirectional joins

    is there a way to make bidirectional joins work?

    I have the following in a mission:


    in mission.ds.xml I have:


    I have the following in a sensor transition:

    in sensorTransition.ds.xml I have:


    In the server log I am given this output:


    and in the dev console I see output like this:
    Last edited by jpappalardo; 24 Sep 2014, 09:42.

    #2
    The "not compatible" warning indicates mixed types of DataSources, eg, one is a JPADataSource and the other is a SQLDataSource, Custom DataSource or something else -we can't automatically do cross-DataSource persistence in this case. This is probably just an oversight in your .ds.xml files.

    If the second problem (recursive definitions) is still bothering you, let us know the full context of that error message (please always do this).

    Comment


      #3
      Thank you for enlightening us to the fact that our intended design for custom data sources will not work. I changed them back to JPA2DataSources and I still get this output
      Last edited by jpappalardo; 24 Sep 2014, 09:42.

      Comment


        #4
        We're not clear on what the design was, it may well work, but what definitely won't work is two different types of DataSources being asked to persist a nested JPA beans structure when one of the DataSource isn't even a JPA DataSource and so has no notion of JPA.

        About these warnings: this sounds like you've got one DataSource incorporating a field whose type is another DataSource, which in turn incorporates a field who type is the first DataSource - in other words, an infinite recursive structure. The ValuesManager is telling you it's not going to generate an infinite recursive UI :)

        Comment

        Working...
        X