Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Returning two node entities in one Cypher query through SDN
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Abdul Azeez Shaik  
View profile  
 More options Oct 10 2012, 12:42 pm
From: Abdul Azeez Shaik <azeeztechni...@gmail.com>
Date: Wed, 10 Oct 2012 22:11:39 +0530
Local: Wed, Oct 10 2012 12:41 pm
Subject: Re: [Neo4j] Returning two node entities in one Cypher query through SDN

This one looks great!
However, there is no mention of this in spring-data-neo4j documentation
except in one example of 17.1.
This would drag more attention, If this could be part of "Reference
Documentation" part.

Thanks for providing me this option.

Regards,
 Abdul

On Tue, Oct 9, 2012 at 11:32 AM, Michael Hunger <

michael.hun...@neotechnology.com> wrote:
> You mean two different node-entities?
> What is your use-case?

> You can actually project the entities.

> it should be also possible to use

> @MapResult
> interface Result {
>    @ResultColumn("n") Iterable<User> getAsUsers();
>    @ResultColumn("n") Iterable<Product> getAsProducts();
> }

> please try that.

> Am 09.10.2012 um 05:41 schrieb Abdul Azeez Shaik <azeeztechni...@gmail.com
> >:

> Hi,

> Can i return two node entities through cypher query in SDN?
> for ex:

> @Query( "START n=node:search({0}) RETURN n")

> Iterable<User> doBasicSearch(String query);

> Apart from Iterable of one Node Entity, can i give a object which has User
> and Product?
> like this,
> Class Result {
> Iterable<User> users;
> Iterable<Product> products;
> }

> Result doBasicSearch(String query);

> Kindly let me know on how to achieve this through Spring Data Neo4j.
> These are versions i have included in pom,
>      <spring-data-neo4j.version>2.1.0.RC4</spring-data-neo4j.version>
>      <org.jackson-version>1.9.7</org.jackson-version>
> <neo4j.version>1.8.RC1</neo4j.version>

> Thanks,
> Abdul

> --

>  --


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.