You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Maxim Solodovnik (Jira)" <ji...@apache.org> on 2025/05/01 06:45:00 UTC

[jira] [Resolved] (OPENJPA-2936) Usage of JPA @Index without name prevents creating schema and queries

     [ https://issues.apache.org/jira/browse/OPENJPA-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Solodovnik resolved OPENJPA-2936.
---------------------------------------
    Fix Version/s: 4.1.1
         Assignee: Maxim Solodovnik
       Resolution: Fixed

> Usage of JPA @Index without name prevents creating schema and queries
> ---------------------------------------------------------------------
>
>                 Key: OPENJPA-2936
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2936
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 4.0.1, 4.1.0
>            Reporter: Paulo Cristovão de Araújo Silva Filho
>            Assignee: Maxim Solodovnik
>            Priority: Major
>             Fix For: 4.1.1
>
>
> When a given entity has the 
> {code:java}
> @Index(columnList="COL1, COL2"){code}
>  annotation without giving a name, the schema generation or reflection fails due to the fact that the mappingtool is not able to define the given name.
>  
> Tested on 4.0.1 and 4.1.0 changing {code}org.apache.openjpa.persistence.jdbc.annotations.EntityWithIndices{code} - adding an unnamed index.
> I will soon propose a fix in a PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)