Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow other primary key types #1

Open
greenrobot opened this issue Nov 7, 2011 · 2 comments
Open

Allow other primary key types #1

greenrobot opened this issue Nov 7, 2011 · 2 comments

Comments

@greenrobot
Copy link
Owner

Currently PKs are limited to long/Long although other types are prepared at some places.

@phileo
Copy link

phileo commented Jan 16, 2014

What is the scope of work to support string primary keys ?

@glideAndroid
Copy link

you can already now use string primary(ish) keys.
SQLite requires a long _ID field that is the id property in GreenDAO but if
you want to use a string key all you need to do is define it as unique, not
null and index it

On Thu, Jan 16, 2014 at 5:05 AM, Phileo notifications@github.com wrote:

What is the scope of work to support string primary keys ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-32438721
.

Have a great day.

Yishai Levenglick
Android-dev team
Glide Talk Ltd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants