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

HHH-15722 : @OneToMany mappedBy with a @Any #8109

Closed
wants to merge 5 commits into from

Commits on Apr 4, 2024

  1. HHH-15722 : @OneToMany mappedBy with a @Any

    Since the collection, which is mapped by the return variable (mappedBy) of the referenced objects, knows its type, the identifying column of the foreign key is sufficient, without having to use the discrimination column.
    
    @startuml
    
    class Library {
        -Long id
        -Set<Book> books
        +void setId(Long)
        +Long getId()
        +Set<Book> getBooks()
        +void setBooks(Set<Book>)
    }
    
    class Book {
        -Long id
        -Store store
        +void setId(Long)
        +Long getId()
        +Store getStore()
        +void setStore(Store)
    }
    
    interface Store {
    }
    
    Library --|> Store : implements
    Library "1" -- "*" Book : contains
    
    @enduml
    Vincent Bouthinon committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    b8b33ac View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. HHH-15722 : Adding the test to verify that using @SQLRestriction("COL…

    …UMN_ROLE='roleName'") allows distinguishing instances belonging to the collection
    Vincent Bouthinon committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    2d532c9 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. HHH-15722 : Add the mechanism that automatically determines the predi…

    …cate to be added to match the @SQLRestriction("COLUMN_ROLE='roleName'"), so that the collection loads only the elements that belong to it.
    Vincent Bouthinon committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    5aa3839 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. HHH-15722 : The absence of a null check on the presence of the discri…

    …minator column was missing. Shame on me.
    Vincent Bouthinon committed May 31, 2024
    Configuration menu
    Copy the full SHA
    02265aa View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    8141a48 View commit details
    Browse the repository at this point in the history