12131415161718192021
@Startup @Transactional public void carregaConfiguracao(){ if(findAll().isEmpty()) { Configuracao conf = new Configuracao(); conf.setConId(1); insert(conf); } }