How can I externalize entity model in JBoss Seam application?

In general the entities are just Java objects with properties that are annotated (JPA). So you only have worry about the JPA annotations as dependencies if you use the model in another application. This would only be one jar with declarations and no run time implications Or do you have any special plans for the entities in Seam, e.g. Use them as entity beans (not sure of the benefits) and therefore introduce more complex dependencies?

A more clean, but also more complicated solution, would be to use interfaces for the entity definition and have concrete implementations for different applications, e.g. JPA annotated beans for Seam and unannotated beans for other applications. This can be done manually of course or with the help of a framework. I have used Eclipse EMF to generate a JPA model that is abstracted by an interface to use in other applications, but because of EMFs default way of handling bi-directional dependencies, etc. There are some caveats.

In general the entities are just Java objects with properties that are annotated (JPA). So you only have worry about the JPA annotations as dependencies if you use the model in another application. This would only be one jar with declarations and no run time implications.

Or do you have any special plans for the entities in Seam, e.g. Use them as entity beans (not sure of the benefits) and therefore introduce more complex dependencies? A more clean, but also more complicated solution, would be to use interfaces for the entity definition and have concrete implementations for different applications, e.g. JPA annotated beans for Seam and unannotated beans for other applications. This can be done manually of course or with the help of a framework.

I have used Eclipse EMF to generate a JPA model that is abstracted by an interface to use in other applications, but because of EMFs default way of handling bi-directional dependencies, etc.There are some caveats.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions