Hi Ivan, there is only one JAXB object here:
https://github.com/ept/neo4j-scala-template/blob/master/src/main/scala/com/example/models/Moo.scala

But thanks anyway :-)

BTW: For this Rest GET "index" call:

rest {
        implicit s =>
        val index = "/index".GET[GetIndex]
      }

the following JAXB objects do work fine:

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
class GetIndex {
  var node:Array[Node] = _
}

@XmlAccessorType(XmlAccessType.FIELD)
class Node {
  var template:String = _
  var `type`:String = _
}

The returned JSON object to unmarshal is:

{
  "node" : [ {
    "template" : "http://localhost:9999/index/node/{key}/{value}";,
    "type" : "lookup"
  } ]
}

On Wed, Dec 8, 2010 at 4:08 PM, ivan Brusic <i...@brusic.com> wrote:

> I have not tried it, but the scala-template project uses JAXB:
> https://github.com/ept/neo4j-scala-template
>
> The project contains a few working examples of Scala + JAXB.  Perhaps it
> will provide some further insights.
>
> --
> Ivan
>
> On Wed, Dec 8, 2010 at 9:52 AM, Christopher Schmidt <
> fakod...@googlemail.com
> > wrote:
>
> > Hi all, is anyone using the REST interface and JAXB?
> >
> > I have some problems with the traversal response of POST call to
> > "/node/3/traverse/path" which returns:
> >
> > [ {
> >  "start" : "http://localhost:9999/node/3";,
> >  "nodes" : [ "http://localhost:9999/node/3";, "
> http://localhost:9999/node/1
> > "
> > ],
> >  "length" : 1,
> >  "relationships" : [ "http://localhost:9999/relationship/6"; ],
> >  "end" : "http://localhost:9999/node/1";
> > }, {
> >  "start" : "http://localhost:9999/node/3";,
> >  "nodes" : [ "http://localhost:9999/node/3";, "
> http://localhost:9999/node/2
> > "
> > ],
> >  "length" : 1,
> >  "relationships" : [ "http://localhost:9999/relationship/2"; ],
> >  "end" : "http://localhost:9999/node/2";
> > } ]
> >
> > Does anyone know how to define the JAXB objects?
> >
> > --
> > Christopher
> > twitter: @fakod
> > blog: http://blog.fakod.eu
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Christopher
twitter: @fakod
blog: http://blog.fakod.eu
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to