Hi,

Ok, this worked properly. I'll paste a little sample if this helps someone:
          OrientVertexType vertex = 
graphFactory.getNoTx().getVertexBaseType();

OrientVertexType user = graphFactory.getNoTx().getVertexType("A3User");
if(user==null){
user = graphFactory.getNoTx().createVertexType("A3User", vertex);


Thanks!



El dijous 17 de juliol de 2014 12:10:26 UTC+2, Andrey Lomakin va escriure:
>
> Hi,
> Just call graph.createVertexType.
>
> Did you try it ?
>
>
> On Thu, Jul 17, 2014 at 1:08 PM, Gerard Solé <[email protected] 
> <javascript:>> wrote:
>
>> I've also tried to use user.setSuperClass(vertex); without success.
>>
>> El dijous 17 de juliol de 2014 12:02:51 UTC+2, Gerard Solé va escriure:
>>
>>> Hello,
>>>
>>> I'm trying to create a subclass from a Vertex with different properties 
>>> set on it.
>>>
>>> First of all I get the vertex class by using the following function:
>>>
>>> OClass vertex = this.graph.getDatabase().getMetadata().getSchema().
>>> getClass("V");
>>>
>>>
>>> And then I use it as a parameter on the createClass:
>>>
>>>  graph.getDatabase().getMetadata().getSchema().createClass("A3User", 
>>> vertex);
>>>
>>>
>>> The class is created with all of its properties, but A3User don't 
>>> inherits from V when I look it on OrientDB Studio or trying to insert a 
>>> User using that class.
>>>
>>> Any suggestions about this issue?
>>>
>>> Thank you all!
>>>
>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Best regards,
> Andrey Lomakin.
>
> Orient Technologies
> the Company behind OrientDB
>
> 

-- 

--- 
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.

Reply via email to