2 Replies Latest reply on Aug 24, 2012 12:50 AM by jaikiran pai

    Best way to convert .har (hibernate archive) deployment with AS 7

    Roshan Pradeep Newbie

      Hi

       

      Currently we are using .har deployment with AS5 implementation. Now we are in the process of migrating our application to AS7, but I know that the .har deployment is not support by AS7.

       

      HAR deployment structre are as below with AS5.

       

      HAR
      |
      |-com
      |  |-business classes
      |     |-*class files and *hbm.xml files
      |
      |-META-INF
        
      |-service-hibernate.xml

       

       

      I just want to know what is the best way to convert .har deployments to AS7.

       

      1. Use hinernate annotations

                But still this way, it uses hibernate.cfg.xml as the configuration file. Is this way support by AS 7?

       

      2. Convert every hibernate enity to JPA.

       

      Any help regarding this is much appreciate.

       

      Thanks

       

      /Roshan