Skip to content

Instantly share code, notes, and snippets.

@ypasmk
ypasmk / gist:df441c24a7de0f8ceb69
Created January 16, 2015 12:25
ElasticSearch dynamic_date_formats is not applied if there is a mapping created with the index
curl -XDELETE "http://localhost:9200/myindex"
curl -XPOST "http://localhost:9200/myindex/" -d '
{
"state": "open",
"mappings": {
"message": {
abstract class A{
@Autowired
protected AService aService;
public void doSomething(String id) {
}
}
@ypasmk
ypasmk / gist:abf436644472a7dd0e9f
Created June 28, 2014 09:34
View multiselect to entity list
public class User implements Serializable{
@Id
String id;
@ManyToMany
List<Role> roles
//Getters and setters
}