Cassandra Springboot Frozen column exception
up vote
0
down vote
favorite
I have a springboot application which I hooked up with cassandra. I am trying to create a map inside a map but getting the below exception.
com.datastax.driver.core.exceptions.InvalidQueryException: Non-frozen collections are not allowed inside collections: map<text, map<text, int>>
Code
@Table
@Data
public class AssessmentSubmissionEntity {
@PrimaryKey()
private UUID id;
@Column
private Map<String, Map<String,Integer>> assessmentMap;
}
man
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
</dependency>
spring-boot cassandra
add a comment |
up vote
0
down vote
favorite
I have a springboot application which I hooked up with cassandra. I am trying to create a map inside a map but getting the below exception.
com.datastax.driver.core.exceptions.InvalidQueryException: Non-frozen collections are not allowed inside collections: map<text, map<text, int>>
Code
@Table
@Data
public class AssessmentSubmissionEntity {
@PrimaryKey()
private UUID id;
@Column
private Map<String, Map<String,Integer>> assessmentMap;
}
man
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
</dependency>
spring-boot cassandra
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a springboot application which I hooked up with cassandra. I am trying to create a map inside a map but getting the below exception.
com.datastax.driver.core.exceptions.InvalidQueryException: Non-frozen collections are not allowed inside collections: map<text, map<text, int>>
Code
@Table
@Data
public class AssessmentSubmissionEntity {
@PrimaryKey()
private UUID id;
@Column
private Map<String, Map<String,Integer>> assessmentMap;
}
man
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
</dependency>
spring-boot cassandra
I have a springboot application which I hooked up with cassandra. I am trying to create a map inside a map but getting the below exception.
com.datastax.driver.core.exceptions.InvalidQueryException: Non-frozen collections are not allowed inside collections: map<text, map<text, int>>
Code
@Table
@Data
public class AssessmentSubmissionEntity {
@PrimaryKey()
private UUID id;
@Column
private Map<String, Map<String,Integer>> assessmentMap;
}
man
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
</dependency>
spring-boot cassandra
spring-boot cassandra
asked 36 mins ago
user3310115
205311
205311
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Please have a look into Non frozen collections and user defined types on Cassandra 2.1.8.
You need to add frozen keyword:
@Column
private Map<String, frozen Map<String,Integer>> assessmentMap;
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Please have a look into Non frozen collections and user defined types on Cassandra 2.1.8.
You need to add frozen keyword:
@Column
private Map<String, frozen Map<String,Integer>> assessmentMap;
add a comment |
up vote
0
down vote
Please have a look into Non frozen collections and user defined types on Cassandra 2.1.8.
You need to add frozen keyword:
@Column
private Map<String, frozen Map<String,Integer>> assessmentMap;
add a comment |
up vote
0
down vote
up vote
0
down vote
Please have a look into Non frozen collections and user defined types on Cassandra 2.1.8.
You need to add frozen keyword:
@Column
private Map<String, frozen Map<String,Integer>> assessmentMap;
Please have a look into Non frozen collections and user defined types on Cassandra 2.1.8.
You need to add frozen keyword:
@Column
private Map<String, frozen Map<String,Integer>> assessmentMap;
answered 3 mins ago
Raheela Aslam
895
895
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53202482%2fcassandra-springboot-frozen-column-exception%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password