I have to join two independent tables in sqlite
. They don't have any foreign key relationship.
Example:
- Table A has a field
name
- Table B has a field
primaryName
I want to do something like
select A.* from A inner join B on A.name = B.primaryName
where A.id = 10 and B.address is null
ORMLite
enforces foreign key, is there a way to do this in ORMLite
?
Unfortunately the short answer is "not at this time". You can certainly use the raw query functionality to support this:
Edit:
This has [finally] been added ORMLite. It has been checked into trunk and will be in version 4.49. Here's the check-in on github: