Hotware / Hibernate-Search-GenericJPA

Hibernate-Search with the JPA provider you want
http://hotware.github.io/Hibernate-Search-GenericJPA/
GNU Lesser General Public License v2.1
5 stars 3 forks source link

implement alternative to TableInfoSources that require knowledge of a JPA provider #48

Closed s4ke closed 9 years ago

s4ke commented 9 years ago
//ALTERNATIVE TO TableInfoSource from JPA
@UpdateTables({
    @UpdateTable(
        tableNames = @TableNames(originalTableName = "Place_AdditionalPlace", updatesTableName = "Place_AdditionalPlaceUpdates"),
        idFields = {
            @IdFields(entityClass = Place.class, originalIdFields = {"place_ID"}, updatesIdFields = {"place_ID"}),
            @IdFields(entityClass = AdditionalPlace.class, originalIdFields = {"additionalPlace_ID"}, updatesIdFields = {"additionalPlace_ID"})
        }
    )
})

For all the JPA providers that we don't provide an automated solution.