Inject session bean into Entity?

Entities are created by you, and if you want to have beans injected into them, they should be created by the container.

Entities are created by you, and if you want to have beans injected into them, they should be created by the container. Technically, you can have your entities managed by the CDI container, and instead of making new YourEntity use @Inject @New YourEntity entity. But this is a bit counter-intuitive.

I haven't tried it. This is a part of a greater discussion about anemic data model vs domain driven design. I.e.

Whether your entities should be data-holders without any behaviour, or they should also have logic (and hide their state).

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