cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we create own atomic type. If yes then how and when we require to create own atomic type?

nikhil-ku
Explorer
0 Kudos
1,100

Can we create own atomic type. If yes then how and when we require to create own atomic type?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nikhil,

You can do it by first implementing your desired type in your extension then declare the new type in yourcustomextension-items.xml:

 <atomictypes>
 <atomictype class="myextension.somepackage.CustomAtomicType" 
 extends="java.jang.Object" autocreate="true" />
 </atomictypes>

More information about structure of items.xml: https://help.hybris.com/6.6.0/hcd/8bff7a568669101488a5e40cb7bbd0b9.html

System update with “Localize types” option might be required. You can check in the backoffice if the type was added successfully: Backofice->System->Types->Search for your custom type.

Additional customization might be necessary.

Hope this helps and Best Regards,

Former Member
0 Kudos

Your answer helped me thank you !

PS: There is a small typo: java.lang.object not java.jang.object

sharada1234
Explorer
0 Kudos

This solution is not working for me.custom atomic types not generating .class files in platform/gensrc folder. can someone help please

Former Member
0 Kudos

I recommend submitting a new question. Feel free to take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html. With these tips you'll be able to prepare questions that draw responses from our members.

Answers (1)

Answers (1)

Former Member
0 Kudos