I am having two models. One is Model A and another is Model B. Both models have getter-setter. But only model A holds value and Model B is totally empty. I want to use Model A and set all those values in model B. How to do that??
In Model A:
public void setVideoUrl(String videoUrl){this.videoUrl = videoUrl;}
public String getVideoUrl(){return videoUrl;}
In Model B:
public String getVideoUrl() {
return videoUrl;
}
public void setVideoUrl(String videoUrl) {
this.videoUrl = videoUrl;
}
In Model A "videoUrl" is already set. I want to set that same "videoUrl" in model B. How to do it??