Package org.jboss.hibernate.deployers.metadata

Examples of org.jboss.hibernate.deployers.metadata.SessionFactoryMetaData


   public void deploy(DeploymentUnit unit, HibernateMetaData metaData) throws DeploymentException
   {
      if (unit instanceof VFSDeploymentUnit == false)
         return;

      SessionFactoryMetaData sessionFactoryMetaData = metaData.getSessionFactory();
      if (sessionFactoryMetaData == null)
         return;

      VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit)unit;
      if (scanFromTop)
         vfsUnit = vfsUnit.getTopLevel();

      // build the hibernate bean
      BeanMetaData beanMetaData = sessionFactoryMetaData.getBeanMetaData(vfsUnit.getRoot());
      vfsUnit.addAttachment(BeanMetaData.class + "$Hibernate", beanMetaData);
      log.info("Created Hibernate bean: " + beanMetaData);
   }
View Full Code Here

TOP

Related Classes of org.jboss.hibernate.deployers.metadata.SessionFactoryMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.