| Recent Entries |
|
10. Mar 2010
|
|||||
|
09. Mar 2010
|
|||||
|
08. Mar 2010
|
|||||
|
04. Mar 2010
|
|||||
|
03. Mar 2010
|
|||||
|
02. Mar 2010
|
|||||
|
27. Feb 2010
|
|||||
|
26. Feb 2010
|
Entries Added
Tags
| Seam News | (132) |
| Seam | (104) |
| Web Beans | (60) |
| Contexts and Dependency Injection | (55) |
| RichFaces | (53) |
| JBoss Tools | (52) |
| Eclipse | (45) |
| JBoss Tools Eclipse | (40) |
| JavaServer Faces | (35) |
| Weld | (31) |
| Hibernate | (24) |
| Bean Validation | (23) |
| Java EE 6 | (14) |
| News | (9) |
| Asylum | (8) |
My 2c on annotation overriding.
23. Jul 2004, 21:40 CET, by Gavin King
Cedric and Bill have proposed solutions. My preference is basically similar to Bill's, but here's how I would write it:
<class name="org.hibernate.Item">
@Entity
@Table(name="AUCTION_ITEM")
<method sig="getBar()">@Transient</method>
<method sig="doSomething(int, String)">
@Tx(REQUIRES_NEW)
</method>
</class>
I like this, because the same approach can be used outside of the context of J2EE. I /really/ wish something like this would have been included in JSR-175.