BTW, Happy New Year! Wish you all the best
I am trying to extend OfferImpl with new property following the tutorial http://docs.broadleafcommerce.org/current/Extending-Entities-Tutorial.html.
My entity implementation is as follow.
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "PREMIUM_PROMOTION")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements")
public class PremiumPromotionImpl extends OfferImpl implements PremiumPromotion {
@Column(name = "PREMIUM_TEXT")
@AdminPresentation(friendlyName = "Hello World", order=1, prominent=true)
protected String text;
@Override
public void setHelloWorld(String text) {
this.text = text;
}
@Override
public String getHelloWorld() {
return text;
}
}
I also added into persistence.xml and applicationContext-entity.xml. There is no problem extending entity. But from this extension, I expected to see new field "Hello World" in admin side because of
annotation."@AdminPresentation(friendlyName = "Hello World", order=1, prominent=true)"
But I do not see any new field in admin side.
What may be wrong?
Code: Select all
I also tried extending Product with MyProduct and Customer with MyCustomer. There is no problem at all for these things. I can see every new fields in admin side. But the problem is only for extending Offer.