j256 / ormlite-core

Core ORMLite functionality that provides a lite Java ORM in conjunction with ormlite-jdbc or ormlite-android
http://ormlite.com/
ISC License
577 stars 212 forks source link

[Question][foreign] Help with connections. #217

Closed javlock closed 3 years ago

javlock commented 3 years ago

The idea is this: The program receives a file (PdfFile), parses it, saves it to the database Saves data (SieveTag) received during parsing

I need to get all SieveTags when requesting a PdfFile I need to get all PdfFile when requesting SieveTag 1: 1 2: 2 3: Screenshot_20210731_172029

j256 commented 3 years ago

Sorry but I can't really help with this. If you want to ask a specific ORMLite question with some ORMLite code then I may be able to help.

javlock commented 3 years ago

I used to write such a code, the connection was through the 3rd table

javlock commented 3 years ago

used https://ormlite.com/javadoc/ormlite-core/doc-files/ormlite.html#Foreign-Collection

j256 commented 3 years ago

Best of luck @JavLock getting back into the code. The documentation might help: https://ormlite.com/javadoc/ormlite-core/doc-files/ormlite.html#Getting-Started