I created this 
issue https://github.com/orientechnologies/orientdb/issues/2431

On Thursday, June 5, 2014 1:10:01 PM UTC+2, Artem Orobets wrote:
>
> Hi Carlo,
>
> It should be possible. Could you create a ticket 
> <https://github.com/orientechnologies/orientdb/issues/new> and provide a 
> test case to reproduce the issue?
>
> Best regards,
> Artem Orobets
>
> * Orient Technologiesthe Company behind OrientDB*
>  
>
> 2014-06-05 12:34 GMT+03:00 Carlo Polisini <[email protected] 
> <javascript:>>:
>
>> Hello, I am using 1.7.1, and I have problems creating an index on an 
>> AbstractClass, I get an exception in java, or an error in console:
>>
>> CREATE INDEX indexForClientUUID ON Client (uuid) unique
>>
>> Creating index...
>> Error: com.orientechnologies.orient.core.index.OIndexException: Cluster 
>> with id -1 does not exist.
>>
>> I see from the classes command that Client class has no clusters 
>> assigned, is not possible anymore to creade an index for abstract classes?
>>
>>
>> On Tuesday, March 11, 2014 5:26:38 PM UTC+1, Andrey Lomakin wrote:
>>
>>> Good will fix it during 1.7 release.
>>>
>>>
>>> On Tue, Mar 11, 2014 at 5:59 PM, Jérémie Brébec <[email protected]> 
>>> wrote:
>>>
>>>> I have created this issue : https://github.com/
>>>> orientechnologies/orientdb/issues/2117
>>>>
>>>>
>>>> Le mardi 11 mars 2014 15:34:19 UTC+1, Andrey Lomakin a écrit :
>>>>>
>>>>> Hi could you create issue about  it ?
>>>>>
>>>>>
>>>>> On Fri, Mar 7, 2014 at 5:58 PM, Jérémie Brébec <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I'm testing OrientDB 1.7-rc2-SNAPSHOT and i have a regression in the 
>>>>>> creation of the database schema.
>>>>>>
>>>>>> I have extracted the following test :
>>>>>>
>>>>>> @Test
>>>>>> public void testCreateIndexOnAbstractClass_1() {
>>>>>>   OrientGraphFactory factory = new OrientGraphFactory("memory:test1"
>>>>>> );
>>>>>>
>>>>>>   OrientBaseGraph graph = factory.getNoTx();
>>>>>>   try {
>>>>>>     OSchema schema = graph.getRawGraph().getMetadata().getSchema();
>>>>>>     OClass clazz = schema.createAbstractClass("MyAbstractClass");
>>>>>>
>>>>>>     clazz.createProperty("key", OType.STRING);
>>>>>>     clazz.createIndex("key", INDEX_TYPE.UNIQUE, "key");
>>>>>>   } finally {
>>>>>>     graph.shutdown();
>>>>>>   }
>>>>>> }
>>>>>>  
>>>>>> @Test
>>>>>> public void testCreateIndexOnAbstractClass_2_Ok_RC1() {
>>>>>>   OrientGraphFactory factory = new OrientGraphFactory("memory:test2"
>>>>>> );
>>>>>>
>>>>>>   OrientBaseGraph graph = factory.getNoTx();
>>>>>>   try {
>>>>>>     OSchema schema = graph.getRawGraph().getMetadata().getSchema();
>>>>>>     OClass clazz = schema.createClass("MyAbstractClass");
>>>>>>     clazz.setAbstract(true);
>>>>>>
>>>>>>     schema.createClass("MyClass");
>>>>>>
>>>>>>     clazz.createProperty("key", OType.STRING);
>>>>>>     clazz.createIndex("key", INDEX_TYPE.UNIQUE, "key");
>>>>>>   } finally {
>>>>>>     graph.shutdown();
>>>>>>   }
>>>>>> }
>>>>>>
>>>>>> In 1.7-rc1, the first test fail but the second one is OK (the real 
>>>>>> use case is more complicated but the simple test i have found is this 
>>>>>> one). 
>>>>>> Moreover, the index seems to work correctly.
>>>>>> In 1.7-rc2, both fail (the second test fail with "Cluster with id 11 
>>>>>> already belongs to class MyAbstractClass")
>>>>>>
>>>>>> After reading the documentation, i don't know if creating an index on 
>>>>>> an abstract class is implemented or if it worked by a "strange" 
>>>>>> side-effect 
>>>>>> ?
>>>>>>
>>>>>> Thanks - and I apologize for my bad english ;-)
>>>>>> Jérémie
>>>>>>
>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>>
>>>>>> --- 
>>>>>> 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.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> 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.
>>>>
>>>
>>>
>>>
>>> -- 
>>> 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] <javascript:>.
>> 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.

Reply via email to