eXtended Objects - Lightweight and flexible datastore mapping of Java domain objects
DirkMahler on master
#133 don't use classes of Java 8 (compare)
DirkMahler on master
#133 don't use classes of Java 8 (compare)
DirkMahler on master
#133 introduce a cacheable Comp… (compare)
DirkMahler on master
#153 added support for generic … Merge remote-tracking branch 'o… updated javadoc maven plugin (compare)
DirkMahler on master
#133 reduce reflection calls (compare)
DirkMahler on master
#133 avoid runtime checking of … moved m2e config to a separate … Merge remote-tracking branch 'o… (compare)
DirkMahler on master
transaction might be null Merge pull request #155 from SM… (compare)
DirkMahler on master
#153 added support for direct u… #153 extended XOSession interfa… (compare)
hmm, Eclipse complains about incompatible return types in https://github.com/buschmais/extended-objects/blob/master/impl/src/main/java/com/buschmais/xo/impl/proxy/repository/composite/ResultOfMethod.java
orig:
protected AbstractInstanceManager<?, XOManager> getInstanceManager(SessionContext sessionContext)
w/o errors:
protected AbstractInstanceManager<?, Entity> getInstanceManager(SessionContext sessionContext)
Neo4jRepository
in a way to make use of generics:@Repository
public interface MovieRepository extends Neo4jRepository<Movie> {
}
MovieRepositry repository = xoManager.getRepository(MovieRepository.class);
Result<Movie> movies = repository.findAll();
DatastoreEntityManager.deleteEntity(Entity)
when using separated collections per type (document) b/c the given entity is plain JSON that does not have any link to the underlying document collection, thus cant know which collection the document to delete from; I see two options: a) "hidden" JSON attribute to store the collection info at creation time b) extend deleteEntity(Entity)
to also pass metatype information - comparable with createEntity(...)
@Document
public interface Article {
// ...
Set<String> getTags();
}
createPropertyMetadata
in the way to also store index information (if available) in the property metadata to be created and to finally create the index in Datastore.init(Map<Class<?>, TypeMetadata> registeredMetadata)