Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 带有Neo4j和多个节点的Spring Boot JPA_Java_Spring_Neo4j - Fatal编程技术网

Java 带有Neo4j和多个节点的Spring Boot JPA

Java 带有Neo4j和多个节点的Spring Boot JPA,java,spring,neo4j,Java,Spring,Neo4j,我已经创建了一个小型Spring Boot项目,该项目从本地neo4j数据源(ogm)获取数据,并有望从DarkSky/OpenWeather返回天气数据,以及随后从我的自制气象站收集的数据 因此,设置为3个节点实体 气象数据 黑暗的 露天 WeatherDataRepository中的Cypher查询如下所示 @Query("Match (z:Zone),(w:WeatherData),(c:Customer),(d:DarkSky),(o:OpenWeather) where

我已经创建了一个小型Spring Boot项目,该项目从本地neo4j数据源(ogm)获取数据,并有望从DarkSky/OpenWeather返回天气数据,以及随后从我的自制气象站收集的数据

因此,设置为3个节点实体

气象数据 黑暗的 露天

WeatherDataRepository中的Cypher查询如下所示

@Query("Match (z:Zone),(w:WeatherData),(c:Customer),(d:DarkSky),(o:OpenWeather) where 
    c.ID_Token = $token" + " and (c)-[:Has_Subscribed_To]->(z) and (z)<-[:Weather_Data_For]-(w) return w as WeatherData, d "+ "as DarkSky, o as OpenWeather")
正如您所看到的,这里的任何帮助都将不胜感激,因为我仍在学习大量有关获取所需数据的框架和方法的知识

@NodeEntity(label = "WeatherData")
public class WeatherData {
      
private String Description;
private List<DarkSky> DarkSky;
private List<OpenWeather> OpenWeather;
      
public List<DarkSky> getDarkSky() {
    return DarkSky;
}
    
public void setDarkSky(List<DarkSky> darkSky) {
    DarkSky = darkSky;
}
    
public List<OpenWeather> getOpenWeather() {
    return OpenWeather;
}
    
public void setOpenWeather(List<OpenWeather> openWeather) {
    OpenWeather = openWeather;
}
    
public String getDescription() {
    return Description;
}
      
public void setDescription(String description) {
    Description = description;
}
[
    {
        "description": "Weather Data From DarkSky And OpenWeather",
        "darkSky": null,
        "openWeather": null
    }
]