Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.test.spring.boot.jpa.service; import java.io.Serializable; import org.springframework.util.Assert; /** * * @author Acdc */ public class CitySearchCriteria implements Serializable { private static final long serialVersionUID = 1L; private String name; public CitySearchCriteria() { } public CitySearchCriteria(String name) { Assert.notNull(name, "Name must not be null"); this.name = name; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } }