ormlite-core icon indicating copy to clipboard operation
ormlite-core copied to clipboard

One-to-one relationship should be established in ORMLite

Open birolozturkk opened this issue 3 years ago • 2 comments

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 avatar Mar 03 '22 18:03 birolozturkk

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

birolozturkk avatar Mar 05 '22 16:03 birolozturkk

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

Rollczi avatar Apr 30 '22 16:04 Rollczi