Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

what is the difference benefits between using sling model (@Model) and Model creating using WCMUSE (WCMUsePojo)?

Avatar

Level 2

what is the difference benefits  between using sling model (@Model) and Model creating using WCMUSE (WCMUsePojo)?

I am not getting clean idea about When should i use @Model and WCMUsePojo?,      can i mix both ?

1 Accepted Solution

Avatar

Correct answer by
Employee

You can mix both if you want.

With model-classes you can make them more reusable, and less code to get services etc.

WcmUsePojo makes it easy to start with coding, but it is bound to the UI

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

You can mix both if you want.

With model-classes you can make them more reusable, and less code to get services etc.

WcmUsePojo makes it easy to start with coding, but it is bound to the UI