-
Notifications
You must be signed in to change notification settings - Fork 126
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
Rename the new @Entity annotation #1183
Comments
p.s. about naming, would it make sense to call your feature REST-4.0? We've been trying for some time to get to the name "Jakarta REST", without the perhaps those somewhat frivolous extra bits in the name. |
What you are suggesting was one of the "candidate names" when we went from jaxrs-2.1 to restfulWS-3.0. Personally I like the simpler name and will see if it will get more traction this time around. |
I think |
@WhiteCat22 I understand the concern of reusing the name. |
ChatGPT offers the following alternatives (I chose the best-suited):
RFC 9110 defines Content as:
So while
Data seems too broad and rather "logical" piece of information. For Entity:JAX-RS defines the Entity class and says that the Entity class encapsulates The obsolete HTTP 1.1 RFC 2710 defines entity, but RFC 9110 uses HTTP message instead. However, while EDIT:
Message body is used very often in that RFC, and |
Definitely +1 to |
|
I don't love it, but can live with @mkarg Can you possibly reconsider your vote? |
FWIW my thought on name clashes comes from things like |
As both EJB and JPA already do have that exact name clash even without JAX-RS, and as there are even more names clashing in Jakarta EE (like Having said that, if (and only if) there is a majority of committers for renaming the annotation, I do not stand on the way of |
While I see the point that other clashes currently exist and, in a vacuum, |
-1 for Message, is it is totally uncommon. |
@mkarg |
Yes, my -1 was for everything having Message in it. |
It seems like That makes 2 official +1 votes from committers (assuming I count @spericas comment above as a +1 vote), with @mkarg voicing a willingness to abide by the majority (with a preference for it to remain Can we please get some more votes (or other suggestions) from committers? If we are going to make this change it would be good to do that sooner rather than later. Thanks |
It is +1 for the |
I will create a PR using |
Thanks for the discussion everyone! |
@spericas I'm looking to get more involved so I took a stab at a pull request. |
Can we close this? |
I believe so. Closing |
Hi all,
I am a developer for Open Liberty and we are starting work on our new feature for RESTfulWS-4.0.
During our EE11 design presentation, we received strong feedback about the name of the new
@Entity
annotation.The main concern is that both EJB and JPA already have an
@Entity
annotation and we want to avoid another annotation with the same name. Multiple annotations with the same name causes confusion and can also cause problems when IDEs auto import the incorrect class.Would it make sense to rename
@Entity
to@RequestEntity
?@Payload
?@PayloadEntity
? Something similar?The text was updated successfully, but these errors were encountered: