--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/71d51307-78c6-471c-9784-fb7a05001d63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
you can add @JsonbTransientint to disable this behavior.
Hi,
I need help. Everywhere I searched it says to used @JasonbTransient instead of @XmlTransient. I have done that but still gives me incomplete JSON error. Netbeans creates the entities with JAXB annotations and It looks like payara server 5.184 doesn't work with JAXB anymore. It works fine with 4.1.2.xxx payara servers. I want to switch my applications to Payara 5.xx but this is stopping me. There is also another annotation that might be causing the problem: @XmlRootElement. No one says anything about this one.
Example of entity:
@Entity
@Table(name = "usertable")
@XmlRootElement
public class Usertable implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "idusertable")
private Integer idusertable;
@Column(name = "datecreated")
@Basic(optional = false)
@Column(name = "email")
private String email = "";
@Basic(optional = false)
@Column(name = "password")
private String password = "";
@OneToMany(mappedBy = "iduser")
private Collection<Propertytable> propertytableCollection;
// Transient variables
@Transient
private String ans1decrypted = "", ans2decrypted = "", ans3decrypted = "";
// GETTERS AND SETTERS AND CONSTRUCTORS
// PLUS
//@XmlTransient
@JsonbTransient
public Collection<Propertytable> getPropertytableCollection() {
return propertytableCollection;
}
}As you can see I have commented out @XmlTransient and added @JasonbTransient in the getter causing the problem. Do I need to do anything with @XmlRootElement? has anyone gone through this issue with the new Payara 5.*?
please help... your help will be appreciated.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/d8abd43b-6a22-496f-99e7-57ea57d6dd2f%40googlegroups.com.