Code Monkey home page Code Monkey logo

spring-projects / spring-data-neo4j Goto Github PK

View Code? Open in Web Editor NEW
810.0 103.0 615.0 30.81 MB

Provide support to increase developer productivity in Java when using Neo4j. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.

Home Page: http://spring.io/projects/spring-data-neo4j

License: Apache License 2.0

Java 97.14% Kotlin 2.05% Shell 0.03% Cypher 0.78%
ddd java neo4j spring spring-data framework

spring-data-neo4j's Introduction

Spring Data Neo4j icon?job=spring data neo4j%2Fmain&subject=Build Gitter Revved up by Develocity

Spring Data Neo4j - or in short SDN - is an ongoing effort to create the next generation of Spring Data Neo4j, with full reactive support and lightweight mapping. SDN will work with immutable entities, regardless whether written in Java or Kotlin.

The primary goal of the Spring Data project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.

The SDN project aims to provide a familiar and consistent Spring-based programming model for integrating with the Neo4j Graph Database.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to [email protected].

Manual

For a gentle introduction and some getting started guides, please use our Manual.

Getting Started

Maven configuration

With Spring Boot

If you are on Spring Boot, all you have to do is to add our starter:

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>

and configure your database connection:

spring.neo4j.uri=bolt://localhost:7687
spring.neo4j.authentication.username=neo4j
spring.neo4j.authentication.password=secret

Please have a look at our manual for an overview about the architecture, how to define mappings and more.

Without Spring Boot

If you are using a plain Spring Framework project without Spring Boot, please add this Maven dependency:

<dependency>
	<groupId>org.springframework.data</groupId>
	<artifactId>spring-data-neo4j</artifactId>
	<version>7.0.1</version>
</dependency>

and configure SDN for reactive database access like this:

@Configuration
@EnableReactiveNeo4jRepositories
@EnableTransactionManagement
class MyConfiguration extends AbstractReactiveNeo4jConfig {

    @Bean
    public Driver driver() {
        return GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("neo4j", "secret"));
    }

    @Override
    protected Collection<String> getMappingBasePackages() {
        return Collections.singletonList(Person.class.getPackage().getName());
    }
}

The imperative version looks pretty much the same but uses EnableNeo4jRepositories and AbstractNeo4jConfig.

Important
We recommend Spring Boot, the automatic configuration and especially the dependency management through the Starters in contrast to the manual work of managing dependencies and configuration.

Here is a quick teaser of a reactive application using Spring Data Repositories in Java:

@Node
public class Person {
    private Long id;
    private String name;

    public Person(String name) {
        this.name = name;
    }
}

@Repository
interface PersonRepository extends ReactiveNeo4jRepository<Person, Long> {

    Flux<Person> findAllByName(String name);

    Flux<Person> findAllByNameLike(String name);
}

@Service
class MyService {

    @Autowired
    private final PersonRepository repository;

    @Transactional
    public Flux<Person> doWork() {

        Person emil = new Person("Emil");
        Person gerrit = new Person("Gerrit");
        Person michael = new Person("Michael");

        // Persist entities and relationships to graph database
        return repository.saveAll(Flux.just(emil, gerrit, michael));
    }
}

Building SDN

Please have a look at the documentation: Building SDN.

Getting Help

Having trouble with Spring Data? We’d love to help!

Reporting Issues

Spring Data uses GitHub as issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

  • Before you log a bug, please search the issue tracker to see if someone has already reported the problem.

  • If the issue doesn’t already exist, create a new issue.

  • Please provide as much information as possible with the issue report, we like to know the version of Spring Data Neo4j, the database version and the JVM version that you are using.

  • If you need to paste code, or include a stack trace use Markdown ``` escapes before and after your text.

  • If possible try to create a test-case or project that replicates the issue. Attach a link to your code or a compressed file containing your code.

License

Spring Data Neo4j is Open Source software released under the Apache 2.0 license.

spring-data-neo4j's People

Contributors

atg103 avatar bachmanm avatar christophstrobl avatar erichaagdev avatar frant-hartm avatar gregturn avatar ihordz avatar jasperblues avatar jexp avatar jxblum avatar luanne avatar mangrish avatar maximatanasov avatar meistermeier avatar michael-simons avatar mp911de avatar nk-coding avatar nmervaillie avatar odrotbohm avatar rlippolis avatar robin850 avatar romain-rossi avatar runbing avatar schauder avatar spring-builds avatar sxhinzvc avatar the-alchemist avatar thephil avatar utnaf avatar viveksb007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-data-neo4j's Issues

Use convention based default to simplify @Configuration style to configure spring graph [DATAGRAPH-6]

Mark Pollack opened DATAGRAPH-6 and commented

As an alternative to XML, show how to use plain old java code, perhaps need to develop a small helper class, to configure spring-graph in code using the @Configuration bean definition model


Issue Links:

  • DATAGRAPH-5 Simplify the configuration of graph infrastructure
    ("depends on")

Referenced from: commits spring-attic/spring-data-graph@8d96673, spring-attic/spring-data-graph@c20958e, spring-attic/spring-data-graph@e47a9ea

Simplify the configuration of graph infrastructure [DATAGRAPH-5]

Mark Pollack opened DATAGRAPH-5 and commented

There is currently a fair bit of boilerplate XML that needs to be registered, this can be made simpler.


This issue is a sub-task of DATAGRAPH-42

Issue Links:

  • DATAGRAPH-9 Create namespace for configuration of graph infrastructure
    ("is depended on by")
  • DATAGRAPH-6 Use convention based default to simplify @Configuration style to configure spring graph
    ("is depended on by")
  • DATAGRAPH-42 One line spring configuration
    ("is depended on by")

Referenced from: commits spring-attic/spring-data-graph@713ff69

Spring Data Programming Model [DATAGRAPH-47]

Michael Hunger opened DATAGRAPH-47 and commented

As an experienced spring developer
I want to use the known spring template approaches with spring-data-graph
So that I can built upon my existing knowledge and work productively

Additional acceptance criteria:
update documentation
publish an example using this programming model


Affects: 1.0 M5

Sub-tasks:

Transaction in view state exception [DATAGRAPH-37]

Stefan Ollinger opened DATAGRAPH-37 and commented

When using Transaction in view with the Scalate template engine and SpringSource tc Server Developer Edition v2.1 i get an exception when trying to fetch a 1:n property from inside the view.
This occurs only if "Enable gathering of metrics" is enabled in the SpringSource Server configuration. When disabled, there is no exception.

The issue seems to be related to this commit: http://git.springsource.org/spring-data/datastore-cross-store/commit/5379ba04a227621d0b6bee30b3fef2468249f0c2

This is the strack trace:

java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main]
at org.springframework.persistence.support.StateProvider.setUnderlyingState(StateProvider.java:13)
at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.fromStateInternal(AbstractConstructorEntityInstantiator.java:46)
at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.createEntityFromState(AbstractConstructorEntityInstantiator.java:22)
at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:63)
at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:1)
at org.springframework.data.graph.neo4j.support.GraphDatabaseContext.createEntityFromState(GraphDatabaseContext.java:119)
at org.springframework.data.graph.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor.createEntitySetFromRelationshipEndNodes(AbstractNodeRelationshipFieldAccessor.java:97)
at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:72)
at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:1)
at org.springframework.data.graph.neo4j.fieldaccess.DefaultEntityStateAccessors.getValue(DefaultEntityStateAccessors.java:75)
at org.springframework.data.graph.neo4j.fieldaccess.DetachableEntityStateAccessors.getValue(DetachableEntityStateAccessors.java:67)
at test.domain.User.tracks_aroundBody69$advice(User.java:241)
at test.domain.User.getTracks(User.java:196)
at scalate.views.$scalate$user_show_scaml$.$scalate$render(user.show.scaml.scala:42)
at scalate.views.$scalate$user_show_scaml.render(user.show.scaml.scala:75)


Affects: 1.0 M3

This issue is a sub-task of DATAGRAPH-45

Change how object counts are updated in the class hierarchy graph to avoid lock contention [DATAGRAPH-13]

David Montag opened DATAGRAPH-13 and commented

Currently, when an entity is created, object counts are updated in the class hierarchy graph. When getting the count, one simply gets the number off the class node in question. Doing it this way however ends up creating a bottleneck for object creation, specifically with the most contention on the class node for Object, as that ends up getting locked for every object creation to update the count.

An alternative would be to just update the count on the one specific class node instead (and not all the way up to Object), and then have Finder.count() sum the whole tree for the class in question. Will have to be looked into at some point


Affects: 1.0 M3

Create namespace for configuration of graph infrastructure [DATAGRAPH-9]

Thomas Risberg opened DATAGRAPH-9 and commented

There is currently a fair bit of boilerplate XML that needs to be registered, this can be encpasulated into a namespace to make it easier for users to configure features


Affects: 1.0 M3

This issue is a sub-task of DATAGRAPH-42

Issue Links:

  • DATAGRAPH-5 Simplify the configuration of graph infrastructure
    ("depends on")
  • DATAGRAPH-42 One line spring configuration
    ("is depended on by")

Referenced from: commits d91f441, 938f462, 9f6b702, dd180da

Easy Configuration [DATAGRAPH-41]

Michael Hunger opened DATAGRAPH-41 and commented

Configure your spring-data app with just a few lines of XML-config. Also have IDE-templates or maven-archetype for getting started.
<datagraph:config store-dir="my-store-dir" entity-manager-factor="myEmf"/>


Affects: 1.0 M3

Issue Links:

Finish refactoring of underlying state [DATAGRAPH-26]

David Montag opened DATAGRAPH-26 and commented

Currently, in NodeEntityStateAccessors there is some redundancy:

setUnderlyingState(node);
entity.setUnderlyingState(node);

and setUnderlyingState(node); does not really do anything. This is because we're halfway through refactoring this. We should wrap this up.

There is also a redundant type argument in FieldAccessor. These kinds of things need to be cleaned up.


Affects: 1.0 M1

Referenced from: commits 4baef09

Type mismatch: cannot convert from Class<World> to Class<? extends NodeBacked> [DATAGRAPH-39]

sura opened DATAGRAPH-39 and commented

Compile error on spring-data-neo4j-hello-worlds example.

I see "Type mismatch: cannot convert from Class<World> to Class<? extends
NodeBacked>" error on the line below, on both mac and windows using the latest version of eclipse. The test cases run fine though. Don't know if I need to do something on eclipse.

@RelatedTo(type = "REACHABLE_BY_ROCKET", elementClass = World.class, direction = Direction.BOTH)
private Set<World> reachableByRocket;

myrestaurants-social

I get the following error when I try to add a friend. ( I am using jetty:run goal to run the web app)

Cannot create a circular reference to [Node[1]]
org.springframework.data.graph.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor.checkNoCircularReference(AbstractNodeRelationshipFieldAccessor.java:72)
org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.setValue(OneToNRelationshipFieldAccessorFactory.java:63)
org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.setValue(OneToNRelationshipFieldAccessorFactory.java:1)
org.springframework.data.graph.neo4j.fieldaccess.ManagedFieldAccessorSet.update(ManagedFieldAccessorSet.java:61)
org.springframework.data.graph.neo4j.fieldaccess.ManagedFieldAccessorSet.add(ManagedFieldAccessorSet.java:72)
com.springone.myrestaurants.web.FriendController.create(FriendController.java:37)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:427)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:415)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)


Affects: 1.0 M1

One line spring configuration [DATAGRAPH-42]

Michael Hunger opened DATAGRAPH-42 and commented

As a spring developer
I want to be add spring-data-graph support to my app with a few lines of configuration code
So that the config stays simple and understandable
Additional acceptance criteria:
update docs, readme and examples to reflect this
upload xsd


Affects: 1.0 M3

Sub-tasks:

  • DATAGRAPH-5 Simplify the configuration of graph infrastructure

  • DATAGRAPH-9 Create namespace for configuration of graph infrastructure

Issue Links:

  • DATAGRAPH-5 Simplify the configuration of graph infrastructure
    ("depends on")
  • DATAGRAPH-9 Create namespace for configuration of graph infrastructure
    ("depends on")
  • DATAGRAPH-41 Easy Configuration
    ("is depended on by")

Replace current "Outside of transaction strategy" with nested Neo4j transactions [DATAGRAPH-38]

Michael Hunger opened DATAGRAPH-38 and commented

After rereading the neo4j transaction wiki page I'm pondering the idea to drop the current code for transaction participation ind spring-data-graph.

Current approach is: when I'm in a transaction just write the property back to the graph (or modify the relationship or create the node).
When I'm outside of a transaction just store the value in the java object. Whenever I'm back in a transaction write back all modified values in one go.

I could change that and replace that the way that all modifying operations would be wrapped in a neo4j transaction. That would ensure that they succeed regardless an outer transaction.

How is the penalty for creating a nested transaction on each property write?
A: Quite cheap, since a nested transaction isn't a nested transaction... it just returns a fake Transaction instance, no extra overhead.

And there is one scenario where this does not fit: Frameworks and people create throwaway entities all the time (e.g. in the web layer). If I wrap node creation in a transaction it would always create a node even for those
entities that are never intended to be stored. The current approach just doesn't flush those entities because they never get near a transaction. A solution for that could be, that node creation is never automatically wrapped in
a transaction just modifications of entities that are backed by existing nodes.


Affects: 1.0 M3

This issue is a sub-task of DATAGRAPH-45

ClassCastException when passing a null Node to GraphDatabaseContext.createEntityFromState [DATAGRAPH-50]

Alessandro Ciccimarra opened DATAGRAPH-50 and commented

I found a little problem when I passed a null Node object to the method createEntityFromState of the class GraphDatabaseContext. In fact in this case the state is not instance of Node and so it tries to cast my model object (that is a NodeBacked one) to a RelationshipBacked one and I obtain this exception:

"java.lang.ClassCastException: it.poliba.sisinflab.impakt.model.Resume cannot be cast to org.springframework.data.graph.core.RelationshipBacked"

I think it would be better to check that the state is not null and so to throw a NullPointerException or to specify that the State must not be null in the documentation


Affects: 1.0 M2

Relate entities outside of transactions [DATAGRAPH-45]

Michael Hunger opened DATAGRAPH-45 and commented

As a spring developer
I want to not have to think about transactions and still be able to relate entities to each other
So that I can easier get my job done!

Acceptance criteria:
Update documentation to mirror the new reality
Update the IMDB app to work without explicit transactions


Affects: 1.0 M3

Sub-tasks:

  • DATAGRAPH-24 Use Transaction Listeners to detect that a entity (re-)entered a transaction

  • DATAGRAPH-37 Transaction in view state exception

  • DATAGRAPH-38 Replace current "Outside of transaction strategy" with nested Neo4j transactions

Change RelatedTo.elementClass attribute to also act as a constraint [DATAGRAPH-52]

David Montag opened DATAGRAPH-52 and commented

Currently, given a graph like this:

A --X--> B
A --X--> C
A --Y--> D,

it is hard to find all B's easily. Consider this declaration in A:

@RelatedTo(type="X", elementClass=B.class)
Iterable<B> myBs;

The semantics of the type attribute is that it is a constraint on the relationship type to follow. The elementClass attribute is currently not treated as a constraint. Instead, all nodes found via relationships are assumed to be of type B. This story aims to bring constraint semantics to the elementClass attribute as well.

If the above code were used currently, it would throw a ClassCastException, because a C is not a B. With this story implemented, it would only return B, because with the elementClass constraint specified as B.class and relationship type constraint specified as X, it would only find B. This enables users to multiplex their related entities using both relationship type and entity type.


Issue Links:

  • DATAGRAPH-53 Make RelatedTo.elementClass enforcing of correct type optional
    ("is depended on by")
  • DATAGRAPH-127 Problems with OO Inheritance & Polymorphism relation semantics

3 votes, 3 watchers

ManagedFieldAccessorSet.update() creates new ManagedFieldAccessorSet every time [DATAGRAPH-14]

David Montag opened DATAGRAPH-14 and commented

ManagedFieldAccessorSet.update() calls fieldAccessor.setValue(entity, value) with the updated set, and it is performed when the ManagedFieldAccessorSet is updated. The only FieldAccessor that is ever used here is the OneToNRelationshipFieldAccessor. Possibly ManagedFieldAccessorSet could be made specific to that FieldAccessor and utilize a method for only setting?


Affects: 1.0 M1

Transaction Handling [DATAGRAPH-44]

Michael Hunger opened DATAGRAPH-44 and commented

Simpler solution for the non-transactional direct-mapping case (i.e. using mapped pojos in the web-layer). All operations (including creating relationships or subgraphs) should be possible without an outside transaction.
More stable support for handling multiple transaction managers in the cross-store scenario. Support XA and/or 1PC best effort approaches.


Affects: 1.0 M3

Refactor NodeTypeStrategy design and/or Finder wrt type safety [DATAGRAPH-25]

David Montag opened DATAGRAPH-25 and commented

Currently, NodeTypeStrategy essentially is a callback interface that gets notified when an entity is created. It then needs to do what is necessary in order to fulfill the contract of the other methods, e.g. findAll() and count(). However, when using a Finder to look up an entity, no type checking is done, even though it may actually be provided by the NodeTypeStrategy used. I think that these areas need another pass, so that we can see if any responsibilities should move around


Affects: 1.0 M1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.