Hi Khawar,
What is it you're trying to accomplish in the end?
Thanks,
-Colin
Orient Technologies
The Company behind OrientDB
On Wednesday, April 1, 2015 at 8:51:58 AM UTC-5, Khawar Nawab wrote:
>
> I want to extend a VERTEXTYPE by a simple Vertex???
> how can i do it?
>
> public static void main(String[] args) {
> final String DB = "t1";
> final String URL = "remote:localhost";
> final String DB_URL = URL + "/" + DB;
>
> final String USERNAME = "root";
> final String PASSWORD = "root";
> Orient.instance().registerEngine(new OEngineRemote());
>
> OrientGraphNoTx graphNoTx = new OrientGraphNoTx(DB_URL, USERNAME,
> PASSWORD);
> System.out.println("db connected");
>
> for (int i = 1; i <= 2; i++) {
> OrientVertexType vertexType = graphNoTx.createVertexType("NODETYPE" + i);
> vertexType.createProperty("nodeid", OType.INTEGER);
> vertexType.createProperty("name", OType.STRING);
>
> }
> OrientVertexType ovt= graphNoTx.getVertexType("NODETYPE1");
>
> graphNoTx.commit();
> graphNoTx.shutdown();
> System.out.println("done");
> }
>
--
---
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.