on 08-19-2005 10:04 AM
hi there,
when I try to generate model classes from JavaBeans classes,
packed into a JAR the generation process always stops with erros when the Bean class uses a property of type
java.util.List. See my example:
class MyJavaBean{
...
private java.util.List someMembers;
...
}
The error is:
Inspecting relation "MyJavaBean.SomeMembers" for source class "MyJavaBean"
[Warning]:This relation cannot be added as the TargetModelClass is not specified
[Error]: There are one or more relations unresolved. Importing the model without resolvoing the relations might result in erratic output.
Must I use a workaround or does anybody know something about this problem ? Installed: NW SP12
thx,
sabine
Sabine,
1. You need getter / setter these expose someMembers variable
2. On the latest screen of model import wizard, you have to select concrete JavaBean class for relation (relation will be highlighted with "warning" icon) Note, that this JavaBean class should reside in the same model, i.e. you have to include it in model import
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am facing similar problem.
I have one field of type some wrraper class lets say, Class ABC.
My method returns the object of the type ABC.
But, it doesnot allow me to import as Bean model.
But, i change type from ABC to some builtin data type then it works.
What is the problem behind this?
Regards,
Bhavik
That tutorial doesn't tell you how to mannage with the java.util.List, which is the main problem here.
Regard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavik,
Can you please explain the error which you are getting while importing the model.
Please have a look at this tutorial.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on using ejbs in web dynpro - 20.html
Hope it helps.
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using Lists it seems to work. but the same question again with java.util.Map when I'm not using a special Bean class from the model inside.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.