import com.sterling.annotation.Entity;
import com.sterling.annotation.Id;
import com.sterling.annotation.Property;
@Entity
public class Person {
@Id
private int id;
@Property
private String name;
}
<?xml version="1.0" encoding="UTF-8"?>
<sterling-config>
<database-info>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/mydb</url>
<username>root</username>
<password>password</password>
</database-info>
</sterling-config>
import com.sterling.Sterling;
Person person = new Person();
person.setId(1);
person.setName("John Doe");