[jboss-user] [JBoss Seam] - Re: How to persist entities that have arrays or collections

grettke_spdr do-not-reply at jboss.com
Wed Jun 20 11:50:28 EDT 2007


"christian.bauer at jboss.com" wrote : It works just fine and I don't see what it has to do with any entityconverter. If your entity has a mapped and persistent collection, it will be managed as part of the mapped entity.

Hey Christian,

My post about entityConverter dealt with my lack of understanding about the role of entityConverter. I was trying to do a selectMany using a collection of ENUMs. ENUMs aren't supported out of the box for this task, so I used this one:

http://shrubbery.mynetgear.net/wiki/Select_lists_with_Seam#Select_from_an_enum

Once I got to that point where I could populate that array of enums, and tried to persist it, it failed. I don't recall the error, but I will set it up again to reproduce it if it is worth your file.

If you are saying that "entities should persist arrays or lists of ENUMs just like they already do with classes" then that answers my questions.

Perhaps I should be asking, do enum types need to be configured as entities? I was hoping we could just configure them to be persisted as ordinals. 

There is information about doing this with Hibernate, but everyone is pointing to user types. 

Unfortunately I don't have any Hibernate expert friends which is why I disturb you guys so frequently. Bless you guys thanks for your time, seriously, you make many things so much easier.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056097#4056097

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056097



More information about the jboss-user mailing list