Skip to main content
Level 2
Mar 7, 2017 7:26 AM UTC
Solved

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

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Adobe Employee
Mar 7, 2017 8:47 AM UTC

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

1 reply

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
Mar 7, 2017 8:47 AM UTC

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

Translate