Skip to content

Getting Started

Steve Forsyth edited this page Mar 16, 2016 · 6 revisions

Getting Started

Maven

<dependency>
    <groupId>com.savoirtech.hecate</groupId>
    <artifactId>hecate-core</artifactId>
    <version>2.0.10</version>
</dependency>

<dependency>
    <groupId>com.savoirtech.hecate</groupId>
    <artifactId>hecate-pojo</artifactId>
    <version>2.0.10</version>
</dependency>

<dependency>
    <groupId>com.savoirtech.hecate</groupId>
    <artifactId>hecate-annotation</artifactId>
    <version>2.0.10</version>
</dependency>

<dependency>
    <groupId>com.savoirtech.hecate</groupId>
    <artifactId>hecate-test</artifactId>
    <version>2.0.10</version>
    <scope>test</scope>
</dependency>

Pojo Annotations

Pojo annotations come with defaults so that you do not have to do much other than to list your Primary Key. They do however have default overrides and cover Composite Keys with Partition Keys and Clustering Keys.

Simple Pojo using defaults:

Public class User {  
    @Id
    String id;
    String firstName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
}
Clone this wiki locally