Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-09-2020 11:15 PM
I used one interface that i defined @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) extends Neo4jRepository. Is It prototype scope good for Neo4jRepository ?
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)*/
public interface ActivityCustomFieldRepository extends Neo4jRepository<ActivityCustomFieldNew, Long>
i used that above.
Solved! Go to Solution.
09-21-2020 07:41 AM
I don't see any benefit in using the prototype scope here. Beans of type Neo4jRepository
should always be stateless and so can be defined and used as (standard) singleton beans.
In a prototype scenario you will end up with creating new repository beans for each call.
09-21-2020 07:41 AM
I don't see any benefit in using the prototype scope here. Beans of type Neo4jRepository
should always be stateless and so can be defined and used as (standard) singleton beans.
In a prototype scenario you will end up with creating new repository beans for each call.
All the sessions of the conference are now available online