Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

annotations_keyspace_different_default

Otávio Santana edited this page Aug 6, 2013 · 1 revision

You can set a keyspace different of the default, for this use the Table's annotations with schema parameter.


 @Table(name="drink",schema="schemaA")
 public class Drink implements Serializable {

 @Id
 private Long id;
    
 @Index
 @Column(name = "name")
 private String name;
    
 @Column(name = "flavor")
 private String flavor;

  //getter and setter
 }

Clone this wiki locally