'Problem defining same column twice using @Column in Spring Boots

I am facing a problem when I define the same column, second time.

In the Document.class that column have defined already and as soon as I define @Column(name = "docid") again into Test.class, it failed.

Document.class

@Column(name = "docid")
  protected String docId;

Test.class

 @Column(name = "docid")
  protected String docIds;

Build failing with error

contextLoads FAILED
    java.lang.IllegalStateException
        Caused by: org.springframework.beans.factory.BeanCreationException
            Caused by: javax.persistence.PersistenceException
                Caused by: org.hibernate.MappingException


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source