Skip to content

Commit

Permalink
add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed Nov 16, 2023
1 parent c783b5d commit 5d4b7c3
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@
public interface DynamoDbTableSchemaResolver {

/**
* Resolving {@link TableSchema} from {@link Class}.
* Resolves {@link TableSchema} from {@link Class}.
*
* @param clazz - the class from which table schema is resolved
* @return table schema
* @param <T> - type
*/
<T> TableSchema<T> resolve(Class<T> clazz);

/**
* Resolves {@link TableSchema} from {@link Class}.
*
* @param clazz - the class from which table schema is resolved
* @param tableName - the table name
* @return table schema
* @param <T> - type
*/
@Deprecated
default <T> TableSchema resolve(Class<T> clazz, String tableName) {
return resolve(clazz);
}
}

0 comments on commit 5d4b7c3

Please sign in to comment.