[
https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin...
]
Matt Benson edited comment on ROASTER-44 at 11/19/14 8:33 AM:
--------------------------------------------------------------
Are you saying you are having trouble setting the type of the nested annotation? The only
way, right now, would be calling {{#setName()}} with the FQ or simple classname. We should
probably overload {{Annotation#setName()}} IMO. Then we can handle the import as well.
was (Author: mbenson):
Are you saying you are having trouble setting the type of the nested annotation? The only
way, right now, would be calling {{#setName()}} with the FQ or simple classname. We should
probably overload {{Annotation#setName()}} IMO.
Support writing of nested annotation arrays
-------------------------------------------
Key: ROASTER-44
URL:
https://issues.jboss.org/browse/ROASTER-44
Project: Roaster
Issue Type: Feature Request
Components: API, JDT
Affects Versions: 2.9.0.Final
Reporter: George Gastaldi
Assignee: Matt Benson
Fix For: 2.9.1.Final
Roaster should allow annotation nesting, like:
{code}
@NamedQueries({
@NamedQuery(name="Customer.findAll", query="select C from Customer
C"),
@NamedQuery(name="Customer.findByName", query="select C from Customer
C where C.name = :name"),
@NamedQuery(name="Customer.findById", query="select C from Customer C
where C.id = :id")
})
@Entity
public class Customer {...}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)