Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: hyperjaxb-hibernate
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      24

      Description

      For performance improvement, we would like to have some global configurations
      for the following two tags in the hbm files that get generated using HyperJAXB2:

      1) As of now, HyperJAXB generates the many-to-one tag with attribute
      fetch="select". We would like the value of the fetch attribute to be
      configurable so that we could generate fetch="join".

      2) Also, currently <list> tags are generated with no attributes. We would like
      to have one of the two attributes fetch (i.e fetch="join" or fetch="subselect")
      and batch-size (i.e. batch-size=some size) in the <list> tags.

      I would appreciate if you could provide this feature as a patch release at the
      earliest, as it will greatly improve the performance, by more than a minute in
      our case.

      Thanks & Regards,
      Vaishali

        Activity

        Hide
        lexi added a comment -

        Hi, I've fixed this. You can now change the default values of attributes and so
        on via comman line arguments. Here's an example:

        <plugin>
        <inherited>true</inherited>
        <groupId>org.jvnet.hyperjaxb2.maven2</groupId>
        <artifactId>maven-hyperjaxb2-plugin</artifactId>
        <configuration>
        <args>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexSingleProperty.manyToOne.fetch=join
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultSimpleCollectionProperty.fetch=join
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultSimpleCollectionProperty.batchSize=20
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexCollectionProperty.fetch=join
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexCollectionProperty.batchSize=20
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultWildcardCollectionProperty.fetch=join
        </arg>
        <arg>

        -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultWildcardCollectionProperty.batchSize=20
        </arg>
        </args>
        </configuration>
        </plugin>

        Would you please try it out and let me know if this worked out for you? After
        that I'll make a new release (0.6.6).

        Show
        lexi added a comment - Hi, I've fixed this. You can now change the default values of attributes and so on via comman line arguments. Here's an example: <plugin> <inherited>true</inherited> <groupId>org.jvnet.hyperjaxb2.maven2</groupId> <artifactId>maven-hyperjaxb2-plugin</artifactId> <configuration> <args> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexSingleProperty.manyToOne.fetch=join </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultSimpleCollectionProperty.fetch=join </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultSimpleCollectionProperty.batchSize=20 </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexCollectionProperty.fetch=join </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultComplexCollectionProperty.batchSize=20 </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultWildcardCollectionProperty.fetch=join </arg> <arg> -Xhyperjaxb2-principalStrategy.customizationsStrategy.defaultWildcardCollectionProperty.batchSize=20 </arg> </args> </configuration> </plugin> Would you please try it out and let me know if this worked out for you? After that I'll make a new release (0.6.6).

          People

          • Assignee:
            lexi
            Reporter:
            vaishali05
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: