Mantis - Resin
Viewing Issue Advanced Details
74 minor always 03-01-05 00:00 05-11-05 00:00
sam  
 
normal  
closed  
fixed  
none    
none 3.0.13  
0000074: 3.0.s050328
RSN-65
If a getter but no setter is defined in an EJB3 bean:

  @OneToMany (
    targetEntity = "example.Contact",
    cascade = CascadeType.ALL
    )
  @JoinColumn(name = "entry")
  public Set<Contact> getContacts()
  {
    return _contacts;
  }

/**
  public void setContacts(Set<Contact> contacts)
  {
    _contacts = contacts;
  }
*/

The error message is obscure:

[20:04:33.318] WEB-INF/web.xml:40: 'javax.ejb.OneToMany' is not a valid annotation for getContacts(). Only persistent property getters and fields may have property annotations.


Notes
(0000076)
ferg   
03-01-05 00:00   
ejb/0g0a