Greetings!
I have the following class and at times need to retrieve only title and subTitle elements:
public class Article implements Serializable {
private static final long serialVersionUID;
private int id;
private String title;
private String subTitle;
private String body;
....
}
What's the best way to facilitate this? I thought about making title and subTitle stand alone objects but I honestly don't know what I'm doing yet.
I have the luxury of changing the entire composition of Article, but asking first is the most sensible thing for me at the moment.
Thanks in advance.