This content has been marked as final.
Show 4 replies
-
1. Re: usingSuggestObjects=
nbelaevski May 7, 2009 8:01 PM (in response to dcernahoschi)Hello,
Looks much like: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154930. Do suggested objects contain enums? What is your RF version? -
2. Re: usingSuggestObjects=
dcernahoschi May 8, 2009 3:59 AM (in response to dcernahoschi)I'm using RF 3.3.0 GA but I've also tried the 3.3.1CR2 with the same problem.
No enums on my suggested object.@Entity @Table(name = "client") public class Client implements Serializable { private static final long serialVersionUID = -503591052962224706L; private Long id; private String cui; private String clientName; private String regCode; private String notes; private Integer activeInd; private Company company; private Set<Contact> contacts = new HashSet<Contact> (); private Set<Invoice> invoices = new HashSet<Invoice> (); private Set<ClientVisibility> clientVisibilities = new HashSet<ClientVisibility> (); private Set<ClientData> clientDatas = new HashSet<ClientData> (); ... }
-
3. Re: usingSuggestObjects=
dcernahoschi May 8, 2009 5:27 AM (in response to dcernahoschi)It seems to me that the ScriptUtils.toScript method is not able to process composed objects.
Because after removing all the composed objects and collections from the suggestion object the error disappeared.
Is there a way to specify which fields need translated to script and rest to be ignored? -
4. Re: usingSuggestObjects=
nbelaevski May 8, 2009 7:16 AM (in response to dcernahoschi)Hello,
No, it's not possible to specify which part of object graph to process using some settings. The only way is creating specialized class containing only the data that has to be processed.