Comments (3)
Hi @neVERberleRfellerER, the idea of Spring Content is to be an abstraction layer over the storage, just like Spring Data is the abstraction layer over the database. So, you can use any JPA database with filesystem storage, or S3 for example. You wouldn't, and are not, forced to use BLOBs (i.e. SC JPA). Some seem to belong together Spring Data Mongo and Spring Content Mongo. The intention was you could use, for example, Spring Data Cassandra with Spring Content S3 and build a horizontally scalable ECM - and that is not something that the traditional ECM vendors can do.
So your original assessment is correct. If you are not using "locking and versioning" then it shouldn't be pulling in spring-data-jpa for sure. That said, "locking and versioning" is a new feature and ONLY supports JPA right now. The design of this feature should match the goals of the Spring Data/Spring Content project but might not be quite correct right now but might not be quite there. We'll continue to iterate on it.
from spring-content.
@neVERberleRfellerER. Thanks for raising this as an issue and I apologize for the tardy response times. We can take a look at this. When we add the locking and versioning feature I assume we created this. Will take a look and see if we can remove it for you.
from spring-content.
@paulcwarren Thanks, but after my small investigation I came to conclusion, that this is my fault and it's not worth fixing on Spring Content side. Somehow I expected that Spring Content does not care about persistence layer used for domain objects and that I can use whatever persistence mechanism I want (e.g. MyBatis or Spring Data MongoDB), but this is not the case as illustrated by @Query
annotations in spring-versions-commons. This also explains why all examples use JPA which I attributed to "most common use case should be best documented". Merely supporting versioning for non-JPA use cases is impossible now, due to lack of persistence agnostic versioning annotations. Maybe just mention JPA dependency in documentation, because all examples using JPA is only hint
So, feel free to close this. I'll stay at 0.4.0 for now thinking about possible solutions for my problem (but due to time constraints I'll probably just use S3 directly in this case).
from spring-content.
Related Issues (20)
- Maven build error with Graal VM on Spring Content HOT 4
- Crash when use FileSystemResourceLoader in the latest version of spring boot HOT 1
- Not compatible with Spring Boot 3.2: method Assert.notNull(Object) does not exist HOT 2
- If-Match HTTP header gets ignored by a concurrent PUT after DELETE on the content of an entity HOT 1
- Filesize and filename are not set after a multipart/form POST http request to create entity with content HOT 1
- Events emitted twice HOT 2
- Relation "Blobs" not found HOT 2
- Multipart request to create entity and content in single request fails with http 400 HOT 1
- Multipart request to create entity and content in one request fail to create entity when file is missing
- Adding content to s3-storage fails with http 500 when using spring boot 3.2.1+ HOT 2
- Allow overriding name of content field in multipart payload
- Unable to Use Azure Data Storage in Springboot
- Unable to Use Azure Data Storage in Springboot HOT 3
- SQL Server HOT 1
- Unable to use spring-content-mongo in springboot application HOT 1
- When using Content Services for Spring with any Spring Boot app version > 3.2.3 facing this error: i.o.s.c.r.c.ContentStoreContentService : Unable to handle request HOT 6
- Table "BLOBS" already exists when using Spring Content JPA with H2 database in multiple unit tests HOT 4
- JPA Versioning repository not working correctly at new created Items HOT 6
- IllegalArgumentException when posting multipart/form-data request without content HOT 2
- File Chunks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-content.