Skip to Content
avatar image
Former Member

Webdyn and EJB Relational Entity Bean Problem


i've been work with this problem for a few days.

the problem is:

Generate Two Relational Table with Entity in EJB

1.Company Table

2.User Table

and Generate Session Bean CRUD Template


and Create a Webdyn Relate With Bean...(Everything is Drag and Drop with out coding)

add excute function for the Bean in wdInit() in Component Controller

and i got this Error

The initial exception that caused the request to fail, was: NodeElement(.New1Comp.Request_CsrUserFacadeLocal_findAllCsrCompany): model node element cannot be created without a model instance 
    at com.csr2.csr2.ui.wd.wd.comp.new1comp.wdp.IPublicNew1Comp$IRequest_CsrUserFacadeLocal_findAllCsrCompanyElement.<init>(
    at com.csr2.csr2.ui.wd.wd.comp.new1comp.wdp.IPublicNew1Comp$IContextNode.doCreateElement(
    ... 60 more

See full exception chain for details. 

the Important thing is the two table are Relate for One to Many

and when i generate the Entity also reted two entity with One to Many

is there anything tutorial for doing this associate with Related Entity..?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 11, 2012 at 03:54 AM

    please use the wizard to generate the code for model execution.

    right click your component contrller-->apply template....

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      problem solved

      my case is using Oracle Database

      below is my Problem solving Guide

      1.JPA doesn't surpport Object Entity

      so change all Object to String if is OK

      2.Using NWDS Genreate Tool does not add entity to public part and do it manually

      3.if two relational entity used by bean set fatch type to eager

      if someone need my sample, i would love to help...

      but i think these issue is basic... referance hibernate and so on

      Edited by: songbo piao on Jan 13, 2012 8:51 AM

      Edited by: songbo piao on Jan 13, 2012 8:51 AM

  • avatar image
    Former Member
    Jan 13, 2012 at 07:53 AM

    already wrote it in my thread...

    Add comment
    10|10000 characters needed characters exceeded