Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.0
    • Fix Version/s: JPA
    • Component/s: Development, JPA
    • Labels:
      None
    • Similar issues:
      KULRICE-6014JPA Conversion Guide
      KULRICE-1675Update create project groovy script for 0.9.3 changes
      KULRICE-3882JPA: discover JPA cascade/fetch option mappings vs OJB(auto-xxxx/proxy), find out what conversion scripts have done and will do for it
      KULRICE-3876JPA - Convert KEW to use JPA
      KULRICE-11725Finish KIM RoleDao conversion for JPA
      KULRICE-9864Add Lookup Conversion to Conversion Script - Part 1
      KULRICE-10124Add Lookup Conversion to Conversion Script - Part 2
      KULRICE-11530Create test for KimPermissionConverter conversion script
      KULRICE-9195KNS to KRAD Conversion Script
      KULRICE-10195KNS to KRAD Conversion Script: Document & Test Conversion Script
    • Application Requirement:
      Rice

      Description

      need to decide what to write these in, Java? Groovy?

      Nate Johnson did an initial conversion script a long time ago, it's probably still in the project, dig it back up and see if it's salvageable DatabaseRefactorSourceCode.groovy

      we also need to determine what all this conversion will include, just JPA mappings? Anything else we can do? Maybe from a Criteria perspective? (i.e. can we convert OJB Critiera java code to our custom criteria api that works with JPA?)

      some analysis will need to be done here

        Issue Links

          Activity

          Hide
          Daniel Seibert (Inactive) added a comment -

          The are several other custom OJB converters to address.
          Some correspond to other hibernate pre-defined types, other will require us to develop custom types. See Jira KULRICE-3866 for more detail.
          We will want the script to create the annotations.

          Show
          Daniel Seibert (Inactive) added a comment - The are several other custom OJB converters to address. Some correspond to other hibernate pre-defined types, other will require us to develop custom types. See Jira KULRICE-3866 for more detail. We will want the script to create the annotations.
          Hide
          Daniel Seibert (Inactive) added a comment - - edited

          Added instructions to JPA conversion confluence page. Update instructions 2/4/10

          Show
          Daniel Seibert (Inactive) added a comment - - edited Added instructions to JPA conversion confluence page. Update instructions 2/4/10
          Hide
          Chad Hagstrom added a comment -

          Dan and Ge, do you know if the ojb2jpa script is currently able to generate composite primary key classes properly for entity classes which contain one or more non-overriden @Id fields in their superclasses? I tried to generate the CPK classes for the KIM module on my local machine so that I could test out something which would require full JPA enabling; however, after running the script, I noticed that the CPK classes generated for entities with IDs located in their superclasses only contained the IDs declared on the entity class itself and not those defined in the superclasses. Two good examples of such problematic classes are KimDocumentRoleMember and KimDocumentRoleQualifier. Is there some other config parameter in the script that I need to modify for my local Rice copy so that it can perform such CPK generation, or does the script not support this style of CPK generation yet?

          Show
          Chad Hagstrom added a comment - Dan and Ge, do you know if the ojb2jpa script is currently able to generate composite primary key classes properly for entity classes which contain one or more non-overriden @Id fields in their superclasses? I tried to generate the CPK classes for the KIM module on my local machine so that I could test out something which would require full JPA enabling; however, after running the script, I noticed that the CPK classes generated for entities with IDs located in their superclasses only contained the IDs declared on the entity class itself and not those defined in the superclasses. Two good examples of such problematic classes are KimDocumentRoleMember and KimDocumentRoleQualifier. Is there some other config parameter in the script that I need to modify for my local Rice copy so that it can perform such CPK generation, or does the script not support this style of CPK generation yet?
          Hide
          Ge Zhang (Inactive) added a comment -

          Chad, this feature is not supported in current script. Besides the class meta data loaded from the OJB config file, CPK classes are also generated upon the actual fields in each BO class, but not to the super class level. Only existing fields in bo class with the primarykey=true defined in the OJB config file will be included in the CPK class. One easy solution is to make CPK classes generated only based on the class meta data regardless the bo and its super class, sounds good? I am looking into it to see if there is some negative impact if doing this

          Show
          Ge Zhang (Inactive) added a comment - Chad, this feature is not supported in current script. Besides the class meta data loaded from the OJB config file, CPK classes are also generated upon the actual fields in each BO class, but not to the super class level. Only existing fields in bo class with the primarykey=true defined in the OJB config file will be included in the CPK class. One easy solution is to make CPK classes generated only based on the class meta data regardless the bo and its super class, sounds good? I am looking into it to see if there is some negative impact if doing this
          Hide
          Ge Zhang (Inactive) added a comment -

          All the sub tasks have been completed, and the script works pretty well, no need to keep it open here

          Show
          Ge Zhang (Inactive) added a comment - All the sub tasks have been completed, and the script works pretty well, no need to keep it open here

            People

            • Assignee:
              Ge Zhang (Inactive)
              Reporter:
              Garey Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel