on ‎2018 May 13 3:13 PM
Hi expert, just trying to create new item type with deployment table but table does not gets created. it still goes to generic item.
<itemtype code="SamsungMobile"
jaloclass="com.hybris.training.core.jalo.SamsungMobile"
autocreate="true" generate="true">
**<deployment table="SamsungMobiles" typecode="32122" />**
<attributes>
<attribute qualifier="mobileModel" type="java.lang.Long">
<modifiers read="true" write="true" optional="false" />
<persistence type="property" />
</attribute>
<attribute qualifier="shippedQuantity" type="java.lang.Long">
<modifiers read="true" write="true" optional="true" />
<persistence type="property" />
</attribute>
</attributes>
</itemtype>
SQL query getting generated against FSQ: select * from {SamsungMobile}
SELECT * FROM genericitems item_t0 WHERE (item_t0.TypePkString=? )
Could you please help?
Request clarification before answering.
To move the items of the generic items table, you first have to remove the JNDI row from the table and then do an an clean all followed by system update.
See below link for doing a similar thing when we migrated from 4.8 to 5.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you initially implemented this item without specifying a deployment, it goes to genericitems table and even if you add deployment tag later, it stays in genericitems. There is no automated task to achieve this, but you can achieve this by making some manual arrangements on database. But it looks like you are trying to learn Hybris, therefore, I suggest you to create a new item and from now on don't forget to add deployment tag for items which are extended from GenericItem.
Good luck,
Mansur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.