[hibernate-issues] [JIRA] (HSEARCH-3922) Remove "get"/"set" prefixes from API methods

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Mon May 18 03:08:00 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3922?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 ) HSEARCH-3922 ( https://hibernate.atlassian.net/browse/HSEARCH-3922?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 ) Remove "get"/"set" prefixes from API methods ( https://hibernate.atlassian.net/browse/HSEARCH-3922?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: backend-elasticsearch, backend-lucene, engine, mapper-javabean, mapper-orm, mapper-pojo Created: 18/May/2020 00:07 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

We sometimes use a "get"/"set" prefix ( SearchResult.getHits() , PropertyBindingContext.setBridge(...) , ...), but most of the time we don't ( Search.session(...) , IndexManager.descriptor() , various DSLs that don't use "set", ...).

I think we should be consistent and not use the prefixes anywhere, for the sake of consistency and brevity. JavaBeans or JPA entity conventions don't apply here, as we're not talking about JavaBeans nor JPA entities.

Old methods with the prefixes should be kept as deprecated for now, of course. There shouldn't be many of them.

( https://hibernate.atlassian.net/browse/HSEARCH-3922#add-comment?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3922#add-comment?atlOrigin=eyJpIjoiZjEzODA4OGUzMTFiNGQ4YTk1OTk0NWMxYzNmMjczNTQiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:82783e0 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200518/e8a5af07/attachment.html 


More information about the hibernate-issues mailing list