Skip to content

Instantly share code, notes, and snippets.

@eevans
eevans / -
Created March 21, 2018 23:55
diff -u cassandra-2.2.6/debian/changelog cassandra-2.2.6/debian/changelog
--- cassandra-2.2.6/debian/changelog
+++ cassandra-2.2.6/debian/changelog
@@ -1,3 +1,9 @@
+cassandra (2.2.6-wmf3) unstable; urgency=medium
+
+ * Comment out JVM test invocation that blocks start up.
+
+ -- Eric Evans <[email protected]> Mon, 12 Mar 2018 11:06:06 -0500
+
@eevans
eevans / -
Created March 21, 2018 23:52
This file has been truncated, but you can view the full file.
diff -u cassandra-2.2.6/debian/changelog cassandra-2.2.6/debian/changelog
--- cassandra-2.2.6/debian/changelog
+++ cassandra-2.2.6/debian/changelog
@@ -1,3 +1,9 @@
+cassandra (2.2.6-wmf3) unstable; urgency=medium
+
+ * Comment out JVM test invocation that blocks start up.
+
+ -- Eric Evans <[email protected]> Mon, 12 Mar 2018 11:06:06 -0500
+
@eevans
eevans / -
Created March 21, 2018 23:52
This file has been truncated, but you can view the full file.
diff -u cassandra-2.2.6/debian/changelog cassandra-2.2.6/debian/changelog
--- cassandra-2.2.6/debian/changelog
+++ cassandra-2.2.6/debian/changelog
@@ -1,3 +1,9 @@
+cassandra (2.2.6-wmf3) unstable; urgency=medium
+
+ * Comment out JVM test invocation that blocks start up.
+
+ -- Eric Evans <[email protected]> Mon, 12 Mar 2018 11:06:06 -0500
+
# dmidecode 2.12
SMBIOS 2.7 present.
84 structures occupying 3073 bytes.
Table at 0x000E8816.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Hewlett-Packard
Version: J01 v02.15
Release Date: 11/10/2011
import java.util.UUID;
import com.opennms.lucidity.annoations.*;
public class Address {
@Id
UUID id;
@Column
String city;
import java.util.UUID;
import com.opennms.lucidity.annoations.*;
@Entity
@Table(name="users")
public class User {
@Id
@Column(name="user_id")
UUID userId;
@eevans
eevans / User.java
Last active December 28, 2015 11:09
import java.util.UUID;
import com.opennms.lucidity.annoations.*;
@Entity
@Table(name="users")
public class User {
@Id
@Column(name="user_id")
UUID userId;
@eevans
eevans / User.java
Last active December 28, 2015 11:09
import java.util.UUID;
import com.opennms.lucidity.annoations.*;
@Entity
@Table(name="users")
public class User {
@Id
@Column(name="user_id")
UUID userId;
@eevans
eevans / schema.cql
Last active December 28, 2015 11:09
CREATE TABLE user (id uuid, givenname text, surname text, birthday timestamp);
...
// Create a factory, and an instance of EntityStore
EntityStoreFactory factory = new CassandraEntityStoreFactory("127.0.0.1", 9042, ConsistencyLevel.QUORUM);
EntityStore store = factory.createEntityStore();
// Create a new user
User peter = new User("Peter", "Griffin", "[email protected]");
store.create(peter);