Skip to content

Commit

Permalink
DefaultCRUDRepo: Converter to generalized Type
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusHdez960717 committed Jun 1, 2022
1 parent 618fe0f commit 190c79b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@
* @param <Domain>
* @param <Entity>
* @param <ID>
* @param <GeneralConverter>
* @param <ExternalRepo>
*/
@Licenced
public class DefaultCRUDRepo<Domain extends DomainObject<ID>, Entity, ID, ExternalRepo extends CRUDExternalRepository<Entity, ID>> implements CRUDRepository<Domain, ID> {
public class DefaultCRUDRepo<Domain extends DomainObject<ID>, Entity, ID, GeneralConverter extends Converter<Domain, Entity>, ExternalRepo extends CRUDExternalRepository<Entity, ID>> implements CRUDRepository<Domain, ID> {

private final boolean doFirePropertyChanges = false;//for the momento allways enabled
protected transient final java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this);

protected final ExternalRepo externalRepo;
protected final Converter<Domain, Entity> converter;
protected final GeneralConverter converter;

public DefaultCRUDRepo(ExternalRepo externalRepo, Converter converter) {
public DefaultCRUDRepo(ExternalRepo externalRepo, GeneralConverter converter) {
this.externalRepo = externalRepo;
this.converter = converter;
}
Expand Down

0 comments on commit 190c79b

Please sign in to comment.