Skip to content

Commit

Permalink
marking serviceName field on Domain as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: dseurotech <[email protected]>
  • Loading branch information
dseurotech committed Jan 19, 2024
1 parent 3a8cb29 commit 2b0c919
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public interface Domain {
*/
boolean getGroupable();

/**
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
String getServiceName();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ default String getType() {
* Sets the {@link Domain} service Name.<br>
*
* @param serviceName The service name of the {@link Domain}
* @since 6.0.0
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
void setServiceName(String serviceName);

Expand All @@ -79,7 +79,7 @@ default String getType() {
* Gets the {@link Domain} service name.
*
* @return The {@link Domain} service name.
* @since 6.0.0
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
@XmlTransient
String getServiceName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class DomainImpl extends AbstractKapuaEntity implements Domain {
@Column(name = "name", nullable = false, updatable = false)
private String name;

/**
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
@Basic
@Column(name = "serviceName", nullable = false, updatable = false)
private String serviceName;
Expand Down Expand Up @@ -97,6 +100,9 @@ public void setName(String name) {
this.name = name;
}

/**
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
@Override
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
Expand All @@ -107,6 +113,9 @@ public String getName() {
return name;
}

/**
* @deprecated since 2.0.0 - This will be removed in future versions as it is not used
*/
@Override
public String getServiceName() {
return this.serviceName;
Expand Down

0 comments on commit 2b0c919

Please sign in to comment.