Hi there,
I have a strange behaviour on my system. I am running STS 3.1 and I use Spring-DATA-JPA and -REST
My domain model is exposed perfectly via -REST.
But: I get old data via my REST repositories after a server restart.
It is even stranger. I have /files/
If I try to access a file, e.g. "/files/1/", before posting a file, I don't get anything.
But if I post a new file and then try to access the new file via the url "/files/1" I don't get the new file data. I get the data of a file which was created in one of my first runs. This happens even after several server restarts.
I find this behaviour realy strange...
My datasource is created via the EmbeddedDatabaseBuilder:
Anyone ever experienced this?Code:@Bean public DataSource dataSource() { EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder(); return builder.setType(EmbeddedDatabaseType.HSQL).build(); }
Does somebody have a solution?
Thanks!
Dominik


Reply With Quote