0

We are using spring-boot-starter-data-jpa 1.2.3 in our project for hibernate specific dependencies but I cannot find @CollectionTable annotation there. Do I need to include any other jar ?

Arturo Volpe
  • 3,442
  • 3
  • 25
  • 40
Sahil Gupta
  • 2,028
  • 15
  • 22
  • spring-boot-sample-data-jpa version 1.0.2.RELEASE doesn't have it either. Does that help? – K.Nicholas Jan 20 '16 at 15:35
  • @Nicholas : What is the best way to store a List of Enums present with in an entity ? One to Many mapping ? – Sahil Gupta Jan 21 '16 at 05:24
  • Your question is not clear. It implies you are looking for an example of `@CollectionTable` in the spring-boot-start-data-jpa archetype. Instead, now you seem to be implying that you think it is not available. Please be clear with your questions. Of course `@CollectionTable` is available in JPA. As for your second question, just google it. http://stackoverflow.com/questions/15998824/mapping-setenum-using-elementcollection – K.Nicholas Jan 21 '16 at 22:05
  • First of all thanks for answering. Secondly my question is what is the alternative of @CollectionTable. We have an entity containing List of enums, how to persist them (what should be the best table structure & which annotation to use now). – Sahil Gupta Jan 22 '16 at 18:12
  • Hi Sahil. I think if you follow the link you will find what you are looking for. – K.Nicholas Jan 22 '16 at 20:03

0 Answers0