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

How to set foregn key in map Join? #423

Open
megafetis opened this issue Nov 16, 2018 · 1 comment
Open

How to set foregn key in map Join? #423

megafetis opened this issue Nov 16, 2018 · 1 comment

Comments

@megafetis
Copy link

megafetis commented Nov 16, 2018

How to set foregn key in map Join?

var joinTable="Category"
Join(joinTable, j =>
            {
                j.Optional();
                j.KeyColumn("Id");

                j.Map(p => p.CategoryName).Column("Name");
            });

I think must be:

var joinTable="Category";
var foregnColumn ="category_id";
Join(foregnColumn, j =>
            {
                j.Optional();
                j.KeyColumn("Id");
                j.Table(joinTable);
                j.Map(p => p.CategoryName).Column("Name");
            });
@norrbacka
Copy link
Contributor

Maybe relevant:

https://hibernate.atlassian.net/browse/HHH-1829

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