package de.ivu.elect.jee.startup;

import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.inject.Inject;

@Startup
@Singleton
@TransactionManagement(TransactionManagementType.BEAN)
public class DbInit {

  @Inject
  private transient DbInitializer dbInitializer;

  @PostConstruct
  public void init() {
    dbInitializer.init();
  }
}
