Skip to content

Instantly share code, notes, and snippets.

@ryansgot
Created May 21, 2018 16:40
Show Gist options
  • Save ryansgot/f3840bcd8b4d933afab6098af3f349d7 to your computer and use it in GitHub Desktop.
Save ryansgot/f3840bcd8b4d933afab6098af3f349d7 to your computer and use it in GitHub Desktop.
Initial Employees Table
package com.fsryan.example.forsuredb.data.db.tables;
import com.fsryan.forsuredb.annotations.FSColumn;
import com.fsryan.forsuredb.annotations.FSTable;
import com.fsryan.forsuredb.annotations.Unique;
import com.fsryan.forsuredb.api.FSGetApi;
import com.fsryan.forsuredb.api.Retriever;
@FSTable("employees")
public interface EmployeesTable extends FSGetApi {
@FSColumn("uuid") @Unique(index = true) String uuid(Retriever retriever);
@FSColumn("first_name") String firstName(Retriever retriever);
@FSColumn("last_name") String lastName(Retriever retriever);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment