[
https://issues.jboss.org/browse/CDI-16?page=com.atlassian.jira.plugin.sys...
]
hantsy bai commented on CDI-16:
-------------------------------
Additionally, the @Entity, I can use @PostLoad, etc. I think it is can also be managed
when JPA process the jpa lifecyle, sush as persist, merge etc.
@Entity
@Managed
class MyEntity{
......
@Inject Entitymanager em;
@Inject @Loggedin User currentUser;
......
@Prepersist
public void prepersist(){
setCreatedBy(currentUser);
setCreatedOn(new Date());
}
}
Improve EE 6 Managed Bean integration
-------------------------------------
Key: CDI-16
URL:
https://issues.jboss.org/browse/CDI-16
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Java EE integration
Affects Versions: 1.0
Reporter: Pete Muir
Fix For: TBD
Try to work out if we can improve on this.
At least, we should clarify what happens if a CDI managed bean is annotated with
@ManagedBean
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira