Day 4: Composite Unique Keys in Hybris

<itemtype code="Category" 
generate="true"
jaloclass="de.hybris.platform.category.jalo.Category"
extends="GenericItem"
autocreate="true">
<deployment table="Categories" typecode="142"/>
............
...............
<indexes>
<index name="codeIDX" unique="false">
<key attribute="code"/>
</index>
<index name="versionIDX" unique="false">
<key attribute="catalogVersion"/>
</index>
<index name="codeVersionIDX" unique="true">
<key attribute="code"/>
<key attribute="catalogVersion"/>
</index>

</indexes>
</itemtype>

--

--

--

Coder by occupation, dreamer by choice

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Part 1: To Git or not to Git?

One-Way Communication(live stream)

C# 10 Record Structs

How to Setup and Configure Hashicorp Vault Server on AWS

Automate Outlook Email Drafting

LP Strategy Framework

How to Increase the Performance of the E-commerce App

Dinobot with Computer Vision

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Priyanka Manikkoth

Priyanka Manikkoth

Coder by occupation, dreamer by choice

More from Medium

JS —Clone and Deep clone with Reference vs Primitive Values!!

ELI5: Linked Lists

OOPs Concepts in Java

Class and Object