Hi Giulia
I already created the vertex. Can't I import only edges?
There must be a way to instantiate existing vertices of a class...in my
case I imported activity_log separately so it is already there in
orientdb....
{
"config": {
"log": "debug"
},
"extractor" : {
"jdbc": { "driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost/dss",
"userName": "root",
"userPassword": "welcome101",
"query": "select * from activity_log" }
},
"transformers" : [
{ "vertex": { "class": "activity_log"} }
],
"loader" : {
"orientdb": {
"dbURL": "plocal:../databases/dss",
"dbAutoCreate": true,
"dbType": "graph"
}
}
}
I need to import 25 tables with multiple edges between them, It will
become tough to create one single json to import if I have to import edges
and vertices together. What do u suggest?
Thanks
Sam
On Mon, Aug 17, 2015 at 2:42 PM, Giulia Brignoli <[email protected]>
wrote:
> Hi Sam,
>
> I think it's because you haven't created a vertex and then when you try to
> create the edge generates an NullPointerException.
>
> Try to look this:
> http://orientdb.com/docs/last/Import-from-DBMS.html
>
> Regards,
> Giulia
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "OrientDB" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/orient-database/i_w3sVje64U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.