# Class MaterialsWrapper

java.lang.Object
com.university.bookstore.repository.MaterialsWrapper

public class MaterialsWrapper extends Object
Wrapper class to ensure proper JSON serialization of Material polymorphic types. This wrapper ensures that Jackson includes type information for each Material.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MaterialsWrapper()`
  `MaterialsWrapper(List<Material> materials)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<Material>`
  `getMaterials()`
  `void`
  `setMaterials(List<Material> materials)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MaterialsWrapper

    public MaterialsWrapper()

  - ### MaterialsWrapper

    public MaterialsWrapper(List<Material> materials)

- ## Method Details

  - ### getMaterials

    public List<Material> getMaterials()

  - ### setMaterials

    public void setMaterials(List<Material> materials)