Re: [Simple-support] Just started -- some questions
Brought to you by:
niallg
|
From: Timo R. <cr...@ol...> - 2008-08-21 10:26:01
|
Hello, >> 2. Why are @Commit and @Persist and @Complete implemented as >> annotations rather than defining a java interface? just adding to what Niall already wrote: think about the developement of JavaEE's EJB 2 specification to EJB version 3 - there were exactly the same intentions to discard all those bean interfaces and switch to annotations instead: It is not a good practice to bring in a framework dependency into your domain models (think about changing the persistance provider implementation). Niall's decision to use annotaions is the best way, in my opinion. Best regards, Timo |