Hi,

I would like to confirm, that code is not working for a LINK in OrientDB 
1.7.8, but it's working well in the latest version 2.1.8

Thanks,
Hung Tran

On Tuesday, January 5, 2016 at 2:59:14 AM UTC+7, Hung Tran wrote:
>
> Hi,
>
> Just a confirmation that, my code below does not working
>
> oProp.createIndex(OClass.INDEX_TYPE.NOTUNIQUE_HASH_INDEX).getDefinition().setNullValuesIgnored(false)
>
>
> A runtime error is "Error on executing command: sql.create index 
> ExternalAccount.LastModifiedBy NOTUNIQUE_HASH_INDEX LINK" (I have copied 
> the SQL and run with Studio, it's working => it seems that the JavaAPI does 
> not work in this case)
>
> It seems to be not working with a LINK?
>
> Any help will be really appreciated!
> Hung Tran
>
>
> On Tuesday, January 5, 2016 at 2:03:53 AM UTC+7, Hung Tran wrote:
>>
>> Hi Alessandro,
>>
>> Thank you, it's working. Thank you to introduce me about 
>> OPropertyIndexDefinition class, now I could access an instance of 
>> IndexDefinition to update that value.
>>
>> In my case, it would be easier,
>>
>> oProp.createIndex(OClass.INDEX_TYPE.NOTUNIQUE_HASH_INDEX).getDefinition().setNullValuesIgnored(false)
>>
>>
>> My Best,
>> Hung Tran
>>
>> On Monday, January 4, 2016 at 5:22:11 PM UTC+7, [email protected] 
>> wrote:
>>>
>>> Try with this code
>>>
>>> OSchema schema = db.getMetadata().getSchema();
>>>
>>> OClass oClass = schema.createClass("Place");
>>> oClass.createProperty("name", OType.STRING);
>>>  
>>> OPropertyIndexDefinition op=new OPropertyIndexDefinition("Place", "name"
>>> , OType.STRING);
>>> op.setNullValuesIgnored(false);
>>> OIndexManagerProxy im = db.getMetadata().getIndexManager();
>>> im.createIndex("Place.name", "NOTUNIQUE_HASH_INDEX", op, null, null, 
>>> null );
>>>
>>> Kind regards,
>>> Alessandro
>>>
>>

-- 

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