Making custom User that extends V and OUser

元气小坏坏 提交于 2019-12-11 14:27:00

问题


I need to create a User class that allows for both record-level security as well as vertex properties, but OUser already extends OIdentity.

I'm also wondering if there's a way to get rid of the automatically generated admin user, as it seems redundant that I can connect to my database using the root user defined in the orientdb-server-config.xml, and I don't need that user (at least right now).


回答1:


You can let OIdentity to extend V:

alter class OIdentity superclass V

So now OUser and ORole are Vertices.

About "admin" you could also drop it if you always use the server's root user (That is God)



来源:https://stackoverflow.com/questions/24689821/making-custom-user-that-extends-v-and-ouser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!