Bug 1332335

Summary: [GSS] (6.4.z) HHH-5393: Repeated Column in mapping when using MapKeyColumn
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: dstephan
Component: HibernateAssignee: Gail Badner <gbadner>
Status: CLOSED WONTFIX QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.4CC: dstephan, gbadner, msimka, smarlow
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-22 00:10:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dstephan 2016-05-03 00:15:49 UTC
Description of problem:

@MapKey is not designed for using Embeddables in maps, so @MapKeyColumn should be used. However when using the following annotation you get a "Repeated Column in Mapping" error:

	@ElementCollection
	@CollectionTable(name = "TRANSACTIONS_EVENTS",
			joinColumns = @JoinColumn(name = "TRANSACTION_ID") )
	@MapKeyColumn(name = "type", insertable=false, updateable=false)
	@MapKeyEnumerated(EnumType.STRING)
	private Map<EventType, TransactionEvent> events = new HashMap<EventType, TransactionEvent>();

Comment 1 dstephan 2016-05-03 00:17:28 UTC
Also see: https://hibernate.atlassian.net/browse/HHH-5393

Comment 7 Gail Badner 2016-07-22 00:10:37 UTC
I've confirmed that this is not needed for EAP 6.4.