@Jubarius escreveu:
Boa noite, pessoal
Estou tentando criar um projeto com o Spring Roo. Criei o script para todas as classes, seus seus relacionamentos, a camada de serviços e o repositório de dados. Porém na hora em que utilizo o comando performed tests (e qualquer uma das outras opções, como adaptar o projeto para ser importado pelo Eclipse) todos os testes falham porque não localizam as NOME_QUALQUER_DE_CLASSE_DataOnDemand. Já tentei utilizar o script para forçar a geração destas classes, mas ainda não consegui. Abaixo estão os meus scripts e o erro (é o mesmo para todas as classes do sistema):
Erro:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.gaspar.escolajb.entity.principal.PaisIntegrationTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.gaspar.escolajb.entity.principal.PaisDataOnDemand com.gaspar.escolajb.entity.principal.PaisIntegrationTest.dod; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.gaspar.escolajb.entity.principal.PaisDataOnDemand] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.gaspar.escolajb.entity.principal.PaisDataOnDemand com.gaspar.escolajb.entity.principal.PaisIntegrationTest.dod; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.gaspar.escolajb.entity.principal.PaisDataOnDemand] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.gaspar.escolajb.entity.principal.PaisDataOnDemand] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Criação das classes:
// Spring Roo 2.0.0.M2 [rev 003b42c] log opened at 2017-03-25 19:47:31 project setup --topLevelPackage com.gaspar.escolajb --projectName EscolaJB_SPRING --java 8 project scan now jpa setup --provider HIBERNATE --database MYSQL --userName juba --password 270787 // Pacote Principal // Classe Pais entity jpa --class ~.entity.principal.Pais --testAutomatically field string --fieldName nome --notNull --sizeMax 200 field string --fieldName sigla --sizeMax 5 // Classe TipoDiaCalendario entity jpa --class ~.entity.principal.TipoDiaCalendario --testAutomatically field string --fieldName nome --sizeMin 0 --sizeMax 150 field boolean --fieldName temAula --column tem_aula field boolean --fieldName diaLetivo --column dia_letivo field string --fieldName corHexa --column cor_hexa --sizeMax 10 --notNull field boolean --fieldName alunos field boolean --fieldName funcionarios field boolean --fieldName professores // Classe Município entity jpa --class ~.entity.principal.Municipio --testAutomatically field string --fieldName cepInicial --column cep_inicial --sizeMax 10 --regexp ^[0-9]{2}.[0-9]{3}-[0-9]{3}$ field string --fieldName cepFinal --column cep_final --sizeMax 10 --regexp ^[0-9]{2}.[0-9]{3}-[0-9]{3}$ field string --fieldName nome --sizeMax 100 field number --fieldName codMunicipio --column cod_municipio --type long field number --fieldName codMunicipio12 --column cod_municipio_12 --type long field number --fieldName codSAE --column cod_sae --type long field number --fieldName ddd --column ddd --type int field number --fieldName ddd2 --column ddd2 --type int field number --fieldName uf --column uf --type int --min 0 --max 27 // Classe Telefone entity jpa --class ~.entity.principal.Telefone --testAutomatically field string --fieldName fone --column fone --sizeMin 0 --sizeMax 14 field number --fieldName ddd --column DDD --type int field string --fieldName local --column local --sizeMin 0 --sizeMax 150 --permitReservedWords field number --fieldName tipo --type int --min 1 --max 4 // Classe Contato entity jpa --class ~.entity.principal.Contato --testAutomatically field string --fieldName colEmails // Classe EntidadeMantenedora entity jpa --class ~.entity.principal.EntidadeMantenedora --testAutomatically field string --fieldName nome --sizeMax 200 --sizeMin 0 field string --fieldName endereco --sizeMax 200 --sizeMin 0 field string --fieldName numEndereco --column endereco_num --sizeMax 5 field string --fieldName bairro --sizeMin 0 --sizeMax 150 field string --fieldName cnpj --column CNPJ field string --fieldName atividade --sizeMax 150 --sizeMin 0 // Classe DiaCalendario entity jpa --class ~.entity.principal.DiaCalendario --testAutomatically field date --fieldName data --type java.util.Date --persistenceType JPA_DATE --notNull --permitReservedWords field number --fieldName colTurnos --type java.lang.Integer // Classe CalendarioEscolar entity jpa --class ~.entity.principal.CalendarioEscolar --testAutomatically field number --fieldName ano --type int --min 0 field date --fieldName dataInicio --type java.util.Date --persistenceType JPA_DATE field date --fieldName dataFim --type java.util.Date --persistenceType JPA_DATE field boolean --fieldName autorizadoNRE --column autorizado_nre // Classe NRE entity jpa --class ~.entity.principal.NRE --testAutomatically field string --fieldName nome --sizeMin 0 --sizeMax 150 // Classe Colegio entity jpa --class ~.entity.principal.Colegio --testAutomatically field number --fieldName codigoSae --column cod_sae --type long field string --fieldName cnpj --column CNPJ --sizeMin 18 --sizeMax 18 field number --fieldName codInep --type long field string --fieldName endereco --sizeMin 0 --sizeMax 200 field string --fieldName enderecoNum --column endereco_num --sizeMin 0 --sizeMax 200 field string --fieldName bairro --sizeMin 0 --sizeMax 200 field string --fieldName cep --sizeMax 10 --regexp [0-9]{2}.[0-9]{3}-[0-9]{3} field number --fieldName situacaoFuncional --column situacao_funcional --type int --min 0 --max 3 field number --fieldName tipoDepAdministrativa --column tipo_dep_administrativa --type int --min 0 --max 4 field number --fieldName zonaLocalizacao --column zona_localizacao --type int --min 0 --max 2 field string --fieldName logo --sizeMin 0 --sizeMax 20 // Classe FinalidadeAto entity jpa --class ~.entity.principal.FinalidadeAto --testAutomatically field string --fieldName nome --sizeMin 0 --sizeMax 150 field string --fieldName descricao --sizeMin 0 --sizeMax 500 // Classe TipoAto entity jpa --class ~.entity.principal.TipoAto --testAutomatically field string --fieldName nome --sizeMin 0 --sizeMax 150 field string --fieldName sigla --sizeMin 0 --sizeMax 20 field string --fieldName descricao --sizeMin 0 --sizeMax 500 // Classe Ato entity jpa --class ~.entity.principal.Ato --testAutomatically field number --fieldName numero --type int --min 0 field date --fieldName doe --type java.util.Date --persistenceType JPA_DATE --past field number --fieldName anoInicio --column ano_inicio --type int field number --fieldName anoFim --column ano_fim --type int field string --fieldName observacao --sizeMax 400 // Classe OrgaoEmissorDoc entity jpa --class ~.entity.principal.OrgaoEmissorDoc --testAutomatically field string --fieldName nome --sizeMin 2 --sizeMax 100 --notNull field string --fieldName sigla --sizeMin 2 --sizeMax 20 --notNull field number --fieldName codSere --column cod_sere --type int // Classe ArquivoMorto entity jpa --class ~.entity.principal.ArquivoMorto --testAutomatically field boolean --fieldName classificacaoAfaNumerica --column classificacao_alfanumerica // Classe ItemArquivoMorto entity jpa --class ~.entity.principal.ItemArquivoMorto --testAutomatically field string --fieldName letra --column letra --sizeMax 1 field number --fieldName codArqMorto --column cod_arquivo_morto --type long ...
Criação dos relacionamentos:
// Classe Município focus --class ~.entity.principal.Municipio field reference --fieldName pais --type ~.entity.principal.Pais --cardinality MANY_TO_ONE // Classe Telefone focus --class ~.entity.principal.Telefone field reference --fieldName contato --type ~.entity.principal.Contato --cardinality MANY_TO_ONE // Classe Contato focus --class ~.entity.principal.Contato field list --fieldName colTelefones --type ~.entity.principal.Telefone --cardinality ONE_TO_MANY --cascadeType ALL --mappedBy contato // Classe EntidadeMantenedora focus --class ~.entity.principal.EntidadeMantenedora field reference --fieldName municipio --type ~.entity.principal.Municipio --cardinality MANY_TO_ONE field reference --fieldName contato --type ~.entity.principal.Contato --cardinality ONE_TO_ONE --cascadeType ALL // Classe DiaCalendario focus --class ~.entity.principal.DiaCalendario field reference --fieldName tipo --type ~.entity.principal.TipoDiaCalendario --cardinality MANY_TO_ONE --notNull field list --fieldName colSeries --type ~.entity.turma.Matriz --cardinality MANY_TO_MANY --joinTable diacalendario_matriz field list --fieldName colTurmas --type ~.entity.turma.Turma --cardinality MANY_TO_MANY --joinTable diacalendario_turma field list --fieldName colModalidades --type ~.entity.turma.Modalidade --cardinality MANY_TO_MANY --joinTable diacalendario_modalidade field list --fieldName colCursos --type ~.entity.turma.Curso --cardinality MANY_TO_MANY --joinTable diacalendario_curso field list --fieldName colFuncoes --type ~.entity.funcionario.Funcao --cardinality MANY_TO_MANY --joinTable diacalendario_funcao field reference --fieldName calendario --type ~.entity.principal.CalendarioEscolar --cardinality MANY_TO_ONE // Classe CalendarioEscolar focus --class ~.entity.principal.CalendarioEscolar field list --fieldName colDia --type ~.entity.principal.DiaCalendario --cardinality ONE_TO_MANY --cascadeType ALL --fetch EAGER --mappedBy calendario field list --fieldName colFuncionarios --type ~.entity.suprimento.FuncionarioSuprido --cardinality ONE_TO_MANY --mappedBy calendario field reference --fieldName colegio --type ~.entity.principal.Colegio --cardinality MANY_TO_ONE // Classe NRE focus --class ~.entity.principal.NRE field reference --fieldName contato --type ~.entity.principal.Contato --cardinality MANY_TO_ONE --fetch EAGER --cascadeType ALL // Classe Colegio focus --class ~.entity.principal.Colegio field reference --fieldName autFunc --type ~.entity.principal.Ato --cardinality MANY_TO_ONE field reference --fieldName recEst --type ~.entity.principal.Ato --cardinality MANY_TO_ONE field list --fieldName colRenAutFunc --type ~.entity.principal.Ato --cardinality ONE_TO_MANY --joinTable colegio_colrenautfunc field list --fieldName colRenRecEst --type ~.entity.principal.Ato --cardinality ONE_TO_MANY --joinTable colegio_colrenrecest field list --fieldName colCalendario --type ~.entity.principal.CalendarioEscolar --cardinality ONE_TO_MANY --joinTable colegio_calendario field reference --fieldName nre --type ~.entity.principal.NRE --cardinality MANY_TO_ONE field reference --fieldName municipio --type ~.entity.principal.Municipio --cardinality MANY_TO_ONE field reference --fieldName entidadeMantenedora --type ~.entity.principal.EntidadeMantenedora --cardinality MANY_TO_ONE field reference --fieldName contato --type ~.entity.principal.EntidadeMantenedora --cardinality MANY_TO_ONE --fetch EAGER --cascadeType ALL // Classe Ato focus --class ~.entity.principal.Ato field reference --fieldName finalidade --type ~.entity.principal.FinalidadeAto --cardinality MANY_TO_ONE field reference --fieldName tipo --type ~.entity.principal.TipoAto --cardinality MANY_TO_ONE // Classe ArquivoMorto focus --class ~.entity.principal.ArquivoMorto field list --fieldName colItens --type ~.entity.principal.ItemArquivoMorto --cardinality ONE_TO_MANY --mappedBy arquivoMorto field reference --fieldName curso --type ~.entity.turma.Curso --cardinality ONE_TO_ONE // Classe ItemArquivoMorto focus --class ~.entity.principal.ItemArquivoMorto field reference --fieldName aluno --type ~.entity.aluno.Aluno --cardinality MANY_TO_ONE field reference --fieldName funcionario --type ~.entity.funcionario.Funcionario --cardinality MANY_TO_ONE field reference --fieldName arquivoMorto --type ~.entity.principal.ArquivoMorto --cardinality MANY_TO_ONE
Criação da camada do repositório de dados
// Spring Roo 2.0.0.M2 [rev 003b42c] log opened at 2017-03-25 19:47:31 // Pacote Principal // Classe Pais repository jpa --interface ~.repository.principal.PaisRepository --entity ~.entity.principal.Pais // Classe TipoDiaCalendario repository jpa --interface ~.repository.principal.TipoDiaCalendarioRepository --entity ~.entity.principal.TipoDiaCalendario // Classe Município repository jpa --interface ~.repository.principal.MunicipioRepository --entity ~.entity.principal.Municipio // Classe Telefone repository jpa --interface ~.repository.principal.TelefoneRepository --entity ~.entity.principal.Telefone // Classe Contato repository jpa --interface ~.repository.principal.ContatoRepository --entity ~.entity.principal.Contato // Classe EntidadeMantenedora repository jpa --interface ~.repository.principal.EntidadeMantenedoraRepository --entity ~.entity.principal.EntidadeMantenedora // Classe DiaCalendario repository jpa --interface ~.repository.principal.DiaCalendarioRepository --entity ~.entity.principal.DiaCalendario // Classe CalendarioEscolar repository jpa --interface ~.repository.principal.CalendarioEscolarRepository --entity ~.entity.principal.CalendarioEscolar // Classe NRE repository jpa --interface ~.repository.principal.NRERepository --entity ~.entity.principal.NRE // Classe Colegio repository jpa --interface ~.repository.principal.ColegioRepository --entity ~.entity.principal.Colegio // Classe FinalidadeAto repository jpa --interface ~.repository.principal.FinalidadeAtoRepository --entity ~.entity.principal.FinalidadeAto // Classe TipoAto repository jpa --interface ~.repository.principal.TipoAtoRepository --entity ~.entity.principal.TipoAto // Classe Ato repository jpa --interface ~.repository.principal.AtoRepository --entity ~.entity.principal.Ato // Classe OrgaoEmissorDoc repository jpa --interface ~.repository.principal.OrgaoEmissorDocRepository --entity ~.entity.principal.OrgaoEmissorDoc // Classe ArquivoMorto repository jpa --interface ~.repository.principal.ArquivoMortoRepository --entity ~.entity.principal.ArquivoMorto // Classe ItemArquivoMorto repository jpa --interface ~.repository.principal.ItemArquivoMortoRepository --entity ~.entity.principal.ItemArquivoMorto ...
Criação da classe de serviços
// Spring Roo 2.0.0.M2 [rev 003b42c] log opened at 2017-03-25 19:47:31 // Pacote Principal // Classe Pais service --interface ~.service.principal.PaisService --entity ~.entity.principal.Pais // Classe TipoDiaCalendario service --interface ~.service.principal.TipoDiaCalendarioService --entity ~.entity.principal.TipoDiaCalendario // Classe Município service --interface ~.service.principal.MunicipioService --entity ~.entity.principal.Municipio // Classe Telefone service --interface ~.service.principal.TelefoneService --entity ~.entity.principal.Telefone // Classe Contato service --interface ~.service.principal.ContatoService --entity ~.entity.principal.Contato // Classe EntidadeMantenedora service --interface ~.service.principal.EntidadeMantenedoraService --entity ~.entity.principal.EntidadeMantenedora // Classe DiaCalendario service --interface ~.service.principal.DiaCalendarioService --entity ~.entity.principal.DiaCalendario // Classe CalendarioEscolar service --interface ~.service.principal.CalendarioEscolarService --entity ~.entity.principal.CalendarioEscolar // Classe NRE service --interface ~.service.principal.NREService --entity ~.entity.principal.NRE // Classe Colegio service --interface ~.service.principal.ColegioService --entity ~.entity.principal.Colegio // Classe FinalidadeAto service --interface ~.service.principal.FinalidadeAtoService --entity ~.entity.principal.FinalidadeAto // Classe TipoAto service --interface ~.service.principal.TipoAtoService --entity ~.entity.principal.TipoAto // Classe Ato service --interface ~.service.principal.AtoService --entity ~.entity.principal.Ato // Classe OrgaoEmissorDoc service --interface ~.service.principal.OrgaoEmissorDocService --entity ~.entity.principal.OrgaoEmissorDoc // Classe ArquivoMorto service --interface ~.service.principal.ArquivoMortoService --entity ~.entity.principal.ArquivoMorto // Classe ItemArquivoMorto service --interface ~.service.principal.ItemArquivoMortoService --entity ~.entity.principal.ItemArquivoMorto ...
Script para forçar a criação das classe DataOnDemand
// Spring Roo 2.0.0.M2 [rev 003b42c] log opened at 2017-03-25 19:47:31 // Pacote Principal // Classe Pais dod --class ~.entity.principal.PaisDataOnDemand --entity ~.entity.principal.Pais // Classe TipoDiaCalendario dod --class ~.entity.principal.TipoDiaCalendarioDataOnDemand --entity ~.entity.principal.TipoDiaCalendario // Classe Município dod --class ~.entity.principal.MunicipioDataOnDemand --entity ~.entity.principal.Municipio // Classe Telefone dod --class ~.entity.principal.TelefoneDataOnDemand --entity ~.entity.principal.Telefone // Classe Contato dod --class ~.entity.principal.ContatoDataOnDemand --entity ~.entity.principal.Contato // Classe EntidadeMantenedora dod --class ~.entity.principal.EntidadeMantenedoraDataOnDemand --entity ~.entity.principal.EntidadeMantenedora // Classe DiaCalendario dod --class ~.entity.principal.DiaCalendarioDataOnDemand --entity ~.entity.principal.DiaCalendario // Classe CalendarioEscolar dod --class ~.entity.principal.CalendarioEscolarDataOnDemand --entity ~.entity.principal.CalendarioEscolar // Classe NRE dod --class ~.entity.principal.NREDataOnDemand --entity ~.entity.principal.NRE // Classe Colegio dod --class ~.entity.principal.ColegioDataOnDemand --entity ~.entity.principal.Colegio // Classe FinalidadeAto dod --class ~.entity.principal.FinalidadeAtoDataOnDemand --entity ~.entity.principal.FinalidadeAto // Classe TipoAto dod --class ~.entity.principal.TipoAtoDataOnDemand --entity ~.entity.principal.TipoAto // Classe Ato dod --class ~.entity.principal.AtoDataOnDemand --entity ~.entity.principal.Ato // Classe OrgaoEmissorDoc dod --class ~.entity.principal.OrgaoEmissorDocDataOnDemand --entity ~.entity.principal.OrgaoEmissorDoc // Classe ArquivoMorto dod --class ~.entity.principal.ArquivoMortoDataOnDemand --entity ~.entity.principal.ArquivoMorto // Classe ItemArquivoMorto dod --class ~.entity.principal.ItemArquivoMortoDataOnDemand --entity ~.entity.principal.ItemArquivoMorto ...
Já procurei no google e não achei caso nem parecido...
Grato pela ajuda.
Mensagens: 2
Participantes: 2