Bug 1332335 - [GSS] (6.4.z) HHH-5393: Repeated Column in mapping when using MapKeyColumn
Summary: [GSS] (6.4.z) HHH-5393: Repeated Column in mapping when using MapKeyColumn
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Gail Badner
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-03 00:15 UTC by dstephan
Modified: 2019-11-14 07:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 00:10:37 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.