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

One-to-one relationship should be established in ORMLite #267

Open
birolozturkk opened this issue Mar 3, 2022 · 2 comments
Open

One-to-one relationship should be established in ORMLite #267

birolozturkk opened this issue Mar 3, 2022 · 2 comments

Comments

@birolozturkk
Copy link

image

image

I need an annotation like @ForeignCollectionField which is for single object @ForeignSingletonField. I tried to make a one-to-one relationship with javax.persistence annotation with my knowledge from jpa, but I guess ormlite doesn't support persistence annotation enough.

If this ormlite is also not possible I'm calling out to the ORMLite developers. It would be great if you add @ForeignSingletonField annotation .

The annatation I want you to add corresponds to @OnetoOne in JPA

@birolozturkk
Copy link
Author

birolozturkk commented Mar 5, 2022

@j256 Can you add the feature I want? It is an important feature in my opinion and I need it very much.

@Rollczi
Copy link

Rollczi commented Apr 30, 2022

@DatabaseField(foreign = true, foreignAutoRefresh = true) ?

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

No branches or pull requests

2 participants