Easy-Cassandra 1.0.9-RC2

17 views
Skip to first unread message

Otávio Gonçalves de Santana

unread,
May 18, 2012, 12:36:34 PM5/18/12
to easy-ca...@googlegroups.com


Released the RC2 of the Easy-Cassandra, with the improvements:

  • Fixes bugs with persist primitives type
  • Fixes bug with empty object
  • Now can support heritage for it, use the MappedSuperclass annotation

Sample:

@MappedSuperclass

public class Worker implements Serializable {

private static final long serialVersionUID = -5568409094833637814L;

@Column

private String name;

@Column

private Double salary;

public String getName() {

return name;

}

public void setName(String name) {

this.name = name;

}

public Double getSalary() {

return salary;

}

public void setSalary(Double salary) {

this.salary= salary;

}

}

@Entity

public class Engineer extends Worker {

private static final long serialVersionUID = 6643883283637783076L;

@Id

private String nickName;

@Column

private String type;

@Column

private String especialization;

public String getType() {

return type;

}

public void setType(String type) {

this.type = type;

}

public String getEspecialization() {

return especialization;

}

public void setEspecialization(String especialization) {

this.especialization = especialization;

}

public String getNickName() {

return nickName;

}

public void setNickName(String nickName) {

this.nickName = nickName;

}

}


The library is in the Download link:https://github.com/otaviojava/Easy-Cassandra/downloads also available by maven:

<dependencies>


  <dependency>
        <groupId>org.easycassandra</groupId>
        <artifactId>EasyCassandra</artifactId>
        <version>1.0.9-RC2</version>
   </dependency>
   <dependency>
    <groupId>org.ow2.spec.ee</groupId>
    <artifactId>ow2-jpa-2.0-spec</artifactId>
    <version>1.0.11</version>
</dependency>
   <!-- other dependencies -->
   </dependencies>
 <repositories>
  <!-- other repositories -->
    <repository>
        <id>easycassandra</id>
        <url>http://otaviojava.googlecode.com/svn/repository/</url>
    </repository>
  </repositories>
</project>


Kasun Mathota

unread,
May 18, 2012, 5:05:01 PM5/18/12
to easy-ca...@googlegroups.com
These features will be very useful .
Reply all
Reply to author
Forward
0 new messages