Class DalMappingGenerator

  • All Implemented Interfaces:
    OBProvidable, OBSingleton

    public class DalMappingGenerator
    extends Object
    implements OBSingleton
    This class is responsible for generating the Hibernate mapping for the tables and entities within OpenBravo. It uses the runtime model provided by ModelProvider.
    Author:
    mtaal
    • Constructor Detail

      • DalMappingGenerator

        public DalMappingGenerator()
    • Method Detail

      • generateMapping

        public String generateMapping()
        Generates the Hibernate mapping for Entities in the system. The generated Hibernate mapping is returned as a String.
        Returns:
        the generated Hibernate mapping (corresponds to what is found in a hbm.xml file)