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 29, 2024
1 parent d17a761 commit e2e1439
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public interface Domain {
*/
boolean getGroupable();

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ 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
*/
@Deprecated
void setServiceName(String serviceName);

/**
Expand All @@ -79,8 +80,9 @@ 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
*/
@Deprecated
@XmlTransient
String getServiceName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ 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
*/
@Deprecated
@Basic
@Column(name = "serviceName", nullable = false, updatable = false)
private String serviceName;
Expand Down Expand Up @@ -97,6 +101,10 @@ 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
*/
@Deprecated
@Override
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
Expand All @@ -107,6 +115,10 @@ public String getName() {
return name;
}

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

0 comments on commit e2e1439

Please sign in to comment.