Skip to content

Commit

Permalink
Use lombok.AllArgsConstructor annotation to structure SinkConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
doleyzi committed Apr 9, 2024
1 parent c639f48 commit 936724f
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@

package org.apache.inlong.audit.entities;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
* Source config
*/
@Data
@AllArgsConstructor
public class SinkConfig {

private String insertSql;
Expand All @@ -31,15 +33,4 @@ public class SinkConfig {
private final String username;
private final String password;

public SinkConfig(String insertSql,
String driverClassName,
String jdbcUrl,
String username,
String password) {
this.insertSql = insertSql;
this.driverClassName = driverClassName;
this.jdbcUrl = jdbcUrl;
this.username = username;
this.password = password;
}
}

0 comments on commit 936724f

Please sign in to comment.