-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Problem mit PropertyAccessException ---- GELÖST -----
PostPosted: Mon Jan 29, 2007 4:18 am 
Newbie

Joined: Mon Dec 11, 2006 3:33 am
Posts: 6
Hallo leute, ich habe ein Problem mit einer
und weiß ned recht warum.

Könnt ihr mir helfen?



Hibernate version: 3.0<br/>

Mapping documents: Antrag.hbm.xml, BeschaeftigungsVerbot.hbm.xml<br/>


Schnipseln aud den Mappingfiles


Antrag.hbm.xml
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE hibernate-mapping SYSTEM
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="bo">

<class name="bo.Antrag"
    table="ANTRAG"  >


<id name="id"  unsaved-value="0">
      <!-- Unique Attribut id -->
<column name="ID" not-null="true"  sql-type="numeric(16)" />
      <generator class="sequence"/>
</id>

<set name="beschaeftigungsVerbotList"  cascade="all" inverse="true" lazy="false">
      <key>
         <column name="ANTRAG"/>
      </key>
      <one-to-many class="bo.BeschaeftigungsVerbot"/>
   </set>   
</class>


BeschaeftigungsVerbot.hbm.xml

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE hibernate-mapping SYSTEM
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="bo">

<class name="bo.BeschaeftigungsVerbot"
    table="BESCHAEFTIGUNGSVERBOT"  >


<id name="id"  unsaved-value="0">
      <!-- Unique Attribut id -->
<column name="ID" not-null="true"  sql-type="number(16)" />
      <generator class="sequence"/>
</id>
<!-- many-to-one -->
<many-to-one
         name="antrag"
         class="bo.Antrag"
         >
      <column name="ANTRAG"/>
</many-to-one>
</class>
</hibernate-mapping>


Code

Code:
public List readAntrag(String vsnr) throws AntragSuchException {
      try{
         return super.find("from Antrag as t where t.vsnr='" + vsnr + "'");
      }catch(RuntimeException e){
         throw new AntragSuchException("woge.global.error.0002");
      }
   }


Fehlermeldung

Code:
09:14:01,765 INFO  [STDOUT] org.springframework.orm.hibernate3.HibernateSystemException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bo.Antrag.setBeschaeftigungsVerbotList; nested exception is org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bo.Antrag.setBeschaeftigungsVerbotList
09:14:01,843 INFO  [STDOUT] org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bo.Antrag.setBeschaeftigungsVerbotList
   at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:203)
   at org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:173)
   at org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2919)
   at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
   at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:530)
   at org.hibernate.loader.Loader.doQuery(Loader.java:436)
   at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
   at org.hibernate.loader.Loader.doList(Loader.java:1593)
   at org.hibernate.loader.Loader.list(Loader.java:1577)
   at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
   at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
   at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
   at org.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:766)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:315)
   at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:757)
   at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:749)
   at at.sozvers.svb.dao.hibernate.AbstractHibernateDAO.find(AbstractHibernateDAO.java:551)
   at dao.hibernate.AntragDAOHibernate.readWogeAntrag(AntragDAOHibernate.java:36)
   at service.impl.WogeSucheServiceImpl.wogeSuche(WogeSucheServiceImpl.java:57)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:97)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at at.sozvers.svb.jLog.interceptor.JLogSpringInterceptor.invoke(JLogSpringInterceptor.java:55)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy86.wogeSuche(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy87.wogeSuche(Unknown Source)
   at struts.action.BearbeitAntragAction.sucheVersicherten(BearbeitAntragAction.java:1100)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
   at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
   at struts.action.AbstractDispatchAction.execute(AbstractDispatchAction.java:31)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at at.sozvers.svb.jave.filter.JaveFilter.doFilter(JaveFilter.java:143)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.cglib.beans.BulkBeanException
   at bo.Antrag$$BulkBeanByCGLIB$$e6b60316.setPropertyValues(<generated>)
   at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:200)
   ... 81 more
Caused by: java.lang.ClassCastException
   ... 83 more



So recht weis ich damit nichts anzufangen.

Für Hilfe wäre ich sehr dankbar.

Gruss DreamArtist


Last edited by DreamArtist on Tue Jan 30, 2007 4:39 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 5:25 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Quellcode posten. Ich habe eine ClassCastException im StackTrace gesehen. Das könnte das Problem sein.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject: Quelltext sehen
PostPosted: Mon Jan 29, 2007 5:49 am 
Newbie

Joined: Mon Dec 11, 2006 3:33 am
Posts: 6
welchen teil möchtest du?

Möchte nicht zu viel posten da alles zum durchlesen demotivierend wäre.

Folgende Teile kann ich anbieten:

DozerMapping Datei von BO auf DTO (wohl am interessantesten)
DAO Zugriff (kaum Interessant da eh nur die save)

Was ich bis jetzt rausgefunden habe dürfte es daran liegen das ich eine Vererbung verwende.

Superklasse BE mit den Attributen Subklasse BO mit den Listen der abhängigen BOs.

Aber die ClassCastException hab ich auch gesehen, nur bekomme ich selbst im DEBUG-Modus nicht heraus was er Casten will.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 8:33 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Baue einen minimalen Testcase, der das Problem zeigt (Mapping Klassen und eine TestKlasse).

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject: TestCase und Mappings samt Klasse
PostPosted: Tue Jan 30, 2007 4:04 am 
Newbie

Joined: Mon Dec 11, 2006 3:33 am
Posts: 6
Nun zuerst der Code

Code:
public void testWogeSuche()throws Exception{
      //Erstelle die Physische DB
      insertTestRecords();
      SuchkriteriumDTO dto = new SuchkriteriumDTO();
      dto.setVsnr("2344010252");
      try {
         //Rufe das Service auf
         SuchergebnisDTO erg = wogeSucheService.wogeSuche(dto);
         //Hier der ServiceCode der Ausgeführt wird
         /*
          * public SuchergebnisDTO wogeSuche(
          *       at.sozvers.svb.woge.dto.SuchkriteriumDTO suchkriterium)
          *       throws WgSuchException {
          *    String vsnr = suchkriterium.getVsnr();      
          *    SuchergebnisDTO ergebnis = findPerson(vsnr);
          *      try{
          *++++++++++  Hier tritt der Fehler auf ++++++++++
          *      List antraege = antragDAO.readWogeAntrag(vsnr);
          *
          */
      } catch (WgSuchException e) {
         e.printStackTrace();
         /*
         * ++++++++++++++++++++++++++++++++++++++++++++
         * ++++++++++++++++++++++++++++++++++++++++++++
         * ++++++++++++++++ StackTrace ++++++++++++++++
         * ++++++++++++++++++++++++++++++++++++++++++++
         * ++++++++++++++++++++++++++++++++++++++++++++
         *
         *
         * Hibernate: select antrag0_.ID as ID, antrag0_.VSNR as VSNR8_, antrag0_.MELDEDATUM as MELDEDATUM8_, antrag0_.ANTRAGSDATUM as ANTRAGSD4_8_, antrag0_.ANTRAGSART as ANTRAGSART8_, antrag0_.ERLEDIGUNGSART as ERLEDIGU6_8_, antrag0_.ERLEDIGUNGSDATUM as ERLEDIGU7_8_, antrag0_.VORENTBINDUNGSTAG as VORENTBI8_8_, antrag0_.ENTBINDUNGSTAG as ENTBINDU9_8_, antrag0_.MERKMALGEBURT as MERKMAL10_8_, antrag0_.KONTIERUNGSART as KONTIER11_8_, antrag0_.WGWEGFALLDATUM as WGWEGFA12_8_, antrag0_.WGWEGFALLGRUND as WGWEGFA13_8_, antrag0_.VSNRVATER as VSNRVATER8_, antrag0_.MBR as MBR8_, antrag0_.BEITRAGSRUECKSTAND as BEITRAG16_8_, antrag0_.EMAILSIBAM as EMAILSIBAM8_, antrag0_.FREIERTEXT as FREIERTEXT8_, antrag0_.ERSTANLAGE as ERSTANLAGE8_, antrag0_.VERSION as VERSION8_, antrag0_.CREATETIMESTAMP as CREATET21_8_, antrag0_.CREATEUSER as CREATEUSER8_, antrag0_.MODIFYTIMESTAMP as MODIFYT23_8_, antrag0_.MODIFYUSER as MODIFYUSER8_ from ANTRAG antrag0_ where antrag0_.VSNR='2344010252'
org.springframework.orm.hibernate3.HibernateSystemException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of at.sozvers.svb.woge.bo.Antrag.setBeschaeftigungsVerbotList; nested exception is org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of at.sozvers.svb.woge.bo.Antrag.setBeschaeftigungsVerbotList
org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of at.sozvers.svb.woge.bo.Antrag.setBeschaeftigungsVerbotList
   at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:203)
   at org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:173)
   at org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2919)
   at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
   at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:530)
   at org.hibernate.loader.Loader.doQuery(Loader.java:436)
   at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
   at org.hibernate.loader.Loader.doList(Loader.java:1593)
   at org.hibernate.loader.Loader.list(Loader.java:1577)
   at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
   at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
   at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
   at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
   at org.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:766)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:315)
   at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:757)
   at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:749)
   at at.sozvers.svb.dao.hibernate.AbstractHibernateDAO.find(AbstractHibernateDAO.java:551)
   at at.sozvers.svb.woge.dao.hibernate.AntragDAOHibernate.readWogeAntrag(AntragDAOHibernate.java:36)
   at at.sozvers.svb.woge.service.impl.WogeSucheServiceImpl.wogeSuche(WogeSucheServiceImpl.java:56)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:97)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy13.wogeSuche(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy14.wogeSuche(Unknown Source)
   at at.sozvers.svb.woge.service.TestWogeSuchService.testWogeSuche(TestWogeSuchService.java:49)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at junit.framework.TestCase.runTest(TestCase.java:154)
   at junit.framework.TestCase.runBare(TestCase.java:127)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
Caused by: net.sf.cglib.beans.BulkBeanException
   at at.sozvers.svb.woge.bo.Antrag$$BulkBeanByCGLIB$$3fd9b318.setPropertyValues(<generated>)
   at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:200)
   ... 55 more
Caused by: java.lang.ClassCastException
   ... 57 more
         *
         *
         */
      }
   }


Die Mappings kannst du ihm ersten Post noch sehen.

Die Klassen in Kurzform

Antrag.java


Code:
public class Antrag extends at.sozvers.svb.woge.be.AntragBE {

   private List beschaeftigungsVerbotList;

   /**
    * <br/> **************************************
    *
    * @return Returns the beschaeftigungsVerbotList.
    *         **************************************<br/>
    */
   public List getBeschaeftigungsVerbotList() {
      return beschaeftigungsVerbotList;
   }

   /**
    * <br/> **************************************
    *
    * @param beschaeftigungsVerbotList
    *           The beschaeftigungsVerbotList to set.
    *           **************************************<br/>
    */
   public void setBeschaeftigungsVerbotList(List beschaeftigungsVerbotList) {
      this.beschaeftigungsVerbotList = beschaeftigungsVerbotList;
   }
}


BeschaeftigungsVerbot.java

Code:
public class BeschaeftigungsVerbot
    extends
      at.sozvers.svb.woge.be.BeschaeftigungsVerbotBE {

    private Antrag antrag;

   /**
    * <br/>
    ***************************************
    * @return Returns the antrag.
    ***************************************<br/>
    */
   public Antrag getAntrag() {
      return antrag;
   }

   /**
    * <br/>
    ***************************************
    * @param antrag The antrag to set.
    ***************************************<br/>
    */
   public void setAntrag(Antrag antrag) {
      this.antrag = antrag;
   }
}


kurze Beschreibung des Arbeitsvorganges:


1. Benutzer möchte zu einer Person einen Antrag anlegen

2. Suche nach der Versicherungsnummer und ob zu dieser Person bereits ein Antrag vorliegt

3. Ist ein Antrag vorhanden lade diesen

Hier tritt das Problem auf! Er kann nicht die Beschäftigungsverbotsliste laden. Der Antrag hat auch keine in der DB. Dies ist aber ein Feld das null Werte erlaubt.

Hoffe das dies hilft!


Top
 Profile  
 
 Post subject: UM GOTTES WILLEN!
PostPosted: Tue Jan 30, 2007 4:38 am 
Newbie

Joined: Mon Dec 11, 2006 3:33 am
Posts: 6
In der Klasse habe ich die Collections als List angeführt zum mappen jedoch ein Set!

Problem ist somit gelöst!

Danke für die Bemühungen!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.