ramilani12 30 de ago. de 2006
vc tem essa collection :
Na classe TbBolsa ?
fhsantiago 30 de ago. de 2006
nao tinha mas coloquei e da o mesmo erro…
public Set getTbBolsas () {
return tbBolsas ;
}
public void setTbBolsas ( Set tbBolsas ) {
this .tbBolsas = tbBolsas ;
}
ramilani12 30 de ago. de 2006
Coloque seus hbm´s para gente dar uma olhada …
fhsantiago 30 de ago. de 2006
o bolsa…
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 28/08/2006 17:40:34 by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping>
<class name= "TbBolsa" table= "TB_BOLSA" >
<composite-id name= "id" class= "TbBolsaId" >
<key-property name= "ageId" type= "long" >
<column name= "AGE_ID" precision= "10" scale= "0" />
</key-property>
<key-property name= "pesId" type= "long" >
<column name= "PES_ID" precision= "10" scale= "0" />
</key-property>
<key-property name= "bolId" type= "long" >
<column name= "BOL_ID" precision= "10" scale= "0" />
</key-property>
</composite-id>
<many-to-one name= "tbInstituicao" class= "TbInstituicao" fetch= "select" >
<column name= "INS_ID" precision= "10" scale= "0" not-null= "true" />
</many-to-one>
<property name= "bolCodigo" type= "string" >
<column name= "BOL_CODIGO" length= "30" not-null= "true" />
</property>
<property name= "bolStatus" type= "string" >
<column name= "BOL_STATUS" length= "1" not-null= "true" />
</property>
<property name= "bolTitulo" type= "string" >
<column name= "BOL_TITULO" />
</property>
<property name= "bolInicio" type= "date" >
<column name= "BOL_INICIO" length= "7" />
</property>
<property name= "bolTermino" type= "date" >
<column name= "BOL_TERMINO" length= "7" />
</property>
<property name= "bolEspecialidade" type= "string" >
<column name= "BOL_ESPECIALIDADE" length= "85" />
</property>
<property name= "bolNmeOrientador" type= "string" >
<column name= "BOL_NME_ORIENTADOR" length= "60" />
</property>
<property name= "bolCategoria" type= "string" >
<column name= "BOL_CATEGORIA" length= "5" />
</property>
<property name= "bolAtualizacao" type= "date" >
<column name= "BOL_ATUALIZACAO" length= "7" />
</property>
<property name= "bolInstOrgao" type= "string" >
<column name= "BOL_INST_ORGAO" length= "75" />
</property>
<property name= "modPalavraChave" type= "string" >
<column name= "MOD_PALAVRA_CHAVE" length= "152" />
</property>
<property name= "bolInstUnidade" type= "string" >
<column name= "BOL_INST_UNIDADE" length= "75" />
</property>
<property name= "bolInstEndereco" type= "string" >
<column name= "BOL_INST_ENDERECO" length= "180" />
</property>
<property name= "bolInstCidade" type= "string" >
<column name= "BOL_INST_CIDADE" length= "40" />
</property>
<property name= "bolInstProvincia" type= "string" >
<column name= "BOL_INST_PROVINCIA" length= "20" />
</property>
<property name= "bolInstBairro" type= "string" >
<column name= "BOL_INST_BAIRRO" length= "30" />
</property>
<property name= "bolInstCep" type= "string" >
<column name= "BOL_INST_CEP" length= "16" />
</property>
<property name= "bolInstDdd" type= "string" >
<column name= "BOL_INST_DDD" length= "5" />
</property>
<property name= "bolInstFone" type= "string" >
<column name= "BOL_INST_FONE" length= "11" />
</property>
<property name= "bolInstFax" type= "string" >
<column name= "BOL_INST_FAX" length= "11" />
</property>
<property name= "codDemanda" type= "string" >
<column name= "COD_DEMANDA" length= "6" />
</property>
<property name= "codNaturDem" type= "string" >
<column name= "COD_NATUR_DEM" length= "2" />
</property>
<property name= "bolInstHomePage" type= "string" >
<column name= "BOL_INST_HOME_PAGE" />
</property>
<property name= "bolInstEMail" type= "string" >
<column name= "BOL_INST_E_MAIL" length= "30" />
</property>
<property name= "bolAssunto" type= "string" >
<column name= "BOL_ASSUNTO" length= "1000" />
</property>
<property name= "bolExport" type= "java.lang.Character" >
<column name= "BOL_EXPORT" length= "1" />
</property>
</class>
</hibernate-mapping>
e o instituicao
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 14/07/2006 13:52:00 by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping package= "hibernate" >
<class name= "TbInstituicao" table= "TB_INSTITUICAO" >
<id name= "insId" type= "java.lang.Integer" >
<column name= "INS_ID" precision= "10" scale= "0" />
<generator class= "sequence" >
<param name= "sequence" > ins_id</param>
</generator>
</id>
<many-to-one name= "usuarioBolsista" class= "UsuarioBolsista" fetch= "select" >
<column name= "USB_ID" precision= "10" scale= "0" />
</many-to-one>
<property name= "insNome" type= "string" >
<column name= "INS_NOME" length= "180" not-null= "true" />
</property>
<property name= "insSigla" type= "string" >
<column name= "INS_SIGLA" length= "25" />
</property>
<property name= "insEndereco" type= "string" >
<column name= "INS_ENDERECO" length= "180" />
</property>
<property name= "insCidade" type= "string" >
<column name= "INS_CIDADE" length= "40" />
</property>
<property name= "insBairro" type= "string" >
<column name= "INS_BAIRRO" length= "30" />
</property>
<property name= "insProvincia" type= "string" >
<column name= "INS_PROVINCIA" length= "30" />
</property>
<property name= "insCep" type= "string" >
<column name= "INS_CEP" length= "16" />
</property>
<property name= "insHomePage" type= "string" >
<column name= "INS_HOME_PAGE" />
</property>
<property name= "insEMail" type= "string" >
<column name= "INS_E_MAIL" length= "60" />
</property>
<property name= "insDdd" type= "string" >
<column name= "INS_DDD" length= "10" />
</property>
<property name= "insFone" type= "string" >
<column name= "INS_FONE" length= "30" />
</property>
<property name= "insFax" type= "string" >
<column name= "INS_FAX" length= "30" />
</property>
<property name= "paisSigla" type= "string" >
<column name= "PAIS_SIGLA" length= "4" />
</property>
<property name= "ufRegiao" type= "string" >
<column name= "UF_REGIAO" length= "2" />
</property>
<property name= "ufSigla" type= "string" >
<column name= "UF_SIGLA" length= "2" />
</property>
<property name= "insPadronizada" type= "string" >
<column name= "INS_PADRONIZADA" length= "1" />
</property>
<property name= "insNivel1" type= "string" >
<column name= "INS_NIVEL1" length= "1" />
</property>
<property name= "insTipo" type= "string" >
<column name= "INS_TIPO" length= "2" />
</property>
<property name= "inmId" type= "java.lang.Integer" >
<column name= "INM_ID" length= "10" />
</property>
<property name= "insIdDep" type= "java.lang.Integer" >
<column name= "INS_ID_DEP" length= "10" />
</property>
<property name= "insDtAtualizacao" type= "date" >
<column name= "INS_DT_ATUALIZACAO" length= "7" />
</property>
<property name= "insUrlOrg" type= "string" >
<column name= "INS_URL_ORG" />
</property>
<property name= "insCgc" type= "string" >
<column name= "INS_CGC" length= "14" />
</property>
<property name= "insRamal" type= "string" >
<column name= "INS_RAMAL" length= "4" />
</property>
<property name= "insFone1" type= "string" >
<column name= "INS_FONE1" length= "30" />
</property>
<property name= "insNatAdm" type= "string" >
<column name= "INS_NAT_ADM" length= "2" />
</property>
<property name= "insDtUltimaCarga" type= "date" >
<column name= "INS_DT_ULTIMA_CARGA" length= "7" />
</property>
<set name= "tbEventoses" inverse= "true" >
<key>
<column name= "INS_ID" precision= "10" scale= "0" />
</key>
<one-to-many class= "TbEventos" />
</set>
<set name= "tbBolsas" inverse= "true" >
<key>
<column name= "INS_ID" precision= "10" scale= "0" not-null= "true" />
</key>
<one-to-many class= "TbBolsa" />
</set>
</class>
</hibernate-mapping>
ja to ficando sem saida…
rodrigo_gomes 30 de ago. de 2006
o hbm do hibernate.TbBolsa ta no cfg?
fhsantiago 31 de ago. de 2006
na conf do hibernate te blz pq funciona sem as linha que eu coloquei no primeiro topico… mas valeu