Package org.apache.openejb.jee.jpa

Examples of org.apache.openejb.jee.jpa.SequenceGenerator


          break;
        }

        facade.addMethodAnnotation(entityBean.getEjbClass(), methodName, emptySignature, javax.persistence.GeneratedValue.class, generatedValueProps);
      }
      SequenceGenerator sequenceGenerator = id.getSequenceGenerator();
      if (sequenceGenerator != null) {
        Map<String, Object> sequenceGeneratorProps = new HashMap<String, Object>();
        sequenceGeneratorProps.put("name", sequenceGenerator.getName()); //$NON-NLS-1$
        sequenceGeneratorProps.put("sequenceName", sequenceGenerator.getSequenceName()); //$NON-NLS-1$
        sequenceGeneratorProps.put("initialValue", sequenceGenerator.getInitialValue().intValue()); //$NON-NLS-1$
        sequenceGeneratorProps.put("allocationSize", sequenceGenerator.getAllocationSize().intValue()); //$NON-NLS-1$

        facade.addMethodAnnotation(entityBean.getEjbClass(), methodName, emptySignature, javax.persistence.SequenceGenerator.class, sequenceGeneratorProps);
      }
      TableGenerator tableGenerator = id.getTableGenerator();
      if (tableGenerator != null) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.jpa.SequenceGenerator

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.