Skip to content

Commit

Permalink
Adjust table names to address new database-level keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Feb 4, 2025
1 parent a045a49 commit b56cde8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;

import org.hibernate.search.engine.backend.types.Aggregable;
import org.hibernate.search.engine.backend.types.Projectable;
Expand All @@ -31,6 +32,9 @@
* A place where documents are available.
*/
@Entity
// MySQL 9.2 defines `library` as a reserved keyword:
// https://dev.mysql.com/doc/refman/9.2/en/keywords.html#keywords-new-in-current-series
@Table(name = "library_table")
@Indexed
@GeoPointBinding(fieldName = "location", sortable = Sortable.YES)
public class Library extends AbstractEntity<Integer> {
Expand Down

0 comments on commit b56cde8

Please sign in to comment.