-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial proposal for a stateless EntityAgent #675
base: master
Are you sure you want to change the base?
Conversation
for jakartaee#374 Signed-off-by: Gavin King <[email protected]>
7c56349
to
4fb5e86
Compare
How about naming it EntityRepository, EntityAccessor, EntityService or EntityStore? |
Or EntityController, EntityRegistry, EntityHub? |
The name is just a suggestion, but I chose it based on the following reasoning:
This would collide with terminology already adopted in Jakarta Data.
It's not a service, because it's not a singleton. Well, at least, that's not how
That sounds like a better name for the
This is more along the lines of what I'm looking for, but I think
I don't like this suggestion at all. The whole point of a stateless session is that it doesn't maintain any sort of registry of entities. So this has almost the precise opposite of the word sense I'm looking for.
Not sure why it's a hub. What are the spokes here? The entities? Again, the point of this object is that it doesn't maintain its relationship with the entities in a stateful way. |
Q: Should Syntactic thought: Syntactic thought: The Java Collections API uses Currently, the |
I was about to answer "no", but then I realized it does make sense in combination with
I want to be very explicit about the huge semantic difference between As to |
Yes, I would not propose that. It was more
Makes sense. The other option is along the lines of using something more like |
Should |
@quaff I don't care much. I agree that returning the id is not necessary, but sometimes it might be convenient. |
This is just a rough draft to incite snarky comments, personal insults, and other feedback. :-)
The pull request introduces:
EntityAgent
, a stateless entity manager, as proposed in stateless entity manager #374,EntityHandler
as place for operations common toEntityAgent
andEntityManager
, andI have not even started working on the specification side of this.