ryancornia opened a new issue, #14541:
URL: https://github.com/apache/grails-core/issues/14541

   In migrating a grails 3.2.11 app to 3.3.8, which migrates to Gorm 6.1, JPA 
annotated entities no longer work.
   
   TagLink.groovy 
   ```
   import javax.persistence.*;
   import javax.validation.constraints.Min;
   
   @Entity
   @Table(name = "tag_links")
   public class TagLink {
       @Id
       @Column(name = "id")
       @GeneratedValue(strategy = GenerationType.IDENTITY)
       private Long id;
   
       @ManyToOne(fetch=FetchType.EAGER, cascade = [CascadeType.REFRESH, 
CascadeType.PERSIST, CascadeType.MERGE])
       @JoinColumn(name = "tag_id")
       private Tag tag;
   
       @Column(name = "tag_ref")
       @Min(0L)
       private Long tagRef;
   
       @Column(name = "type", nullable = false)
       private String type;
   
       @Version
       private Long version;
   ...
   ```
   
   Fails on build with:
   
   The method public java.lang.Long getVersion()  { ... } duplicates another 
method of the same signature
   . At [-1:-1]  @ line -1, column -1.
   
   All of my JPA entities that have an @Version annotation fail. 
   
   I would assume if Gorm 6.1 supports JPA annotations, it should handle the 
@Version annotation. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to