|
[java]
JDK1.5 Annotations and POJO's?
[
eivindw
]
I started looking into the new annotations in JDK1.5. The reason was some EJB3 code I was trying to write. The great thing about CMP in EJB3 is the whole POJO thing (as seems to be the most important thing in all kinds of projects these days). Now, what bothered me was this. I've been a big fan of XDoclet for a long time, and thought that annotations would be the perfect match for my CMP3 beans. Thus having code like this: import javax.ejb.Entity; @Entity The @Entity requires me to import javax.ejb.Entity to compile with 1.5. Is this then still a POJO? I guess you could say something like this: @javax.ejb.Entity But is that any better? Hmm.. Would I really want to expose an object to my presentation layer that has dependencies on javax.ejb? How about remote clients? *boggle* Maybe this is not really an issue, have to look into it some more. Very sorry --sth, April 14, 2007 08:21 AM
Post a comment
|