[cdi-dev] [JBoss JIRA] (CDI-16) Improve EE 6 Managed Bean integration
hantsy bai (JIRA)
jira-events at lists.jboss.org
Sun Sep 2 21:46:32 EDT 2012
[ https://issues.jboss.org/browse/CDI-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715313#comment-12715313 ]
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
More information about the cdi-dev
mailing list