Subversion Repositories eFlore/Applications.coel

Rev

Rev 1136 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1136 Rev 1150
Line 8... Line 8...
8
public class CollectionACommentaire extends aDonnee {
8
public class CollectionACommentaire extends aDonnee {
Line 9... Line 9...
9
	
9
	
10
	private static final long serialVersionUID = 8751553802444398035L;
10
	private static final long serialVersionUID = 8751553802444398035L;
11
	public static final String PREFIXE = "ccac";
11
	public static final String PREFIXE = "ccac";
-
 
12
	private Commentaire commentaireLiee = null;
Line 12... Line 13...
12
	private Commentaire commentaireLiee = null;
13
	public static String[] champsObligatoires = {"cc_id_collection", "ccac_id_commentaire"};
13
	
14
	
14
	public CollectionACommentaire() {
15
	public CollectionACommentaire() {
Line 26... Line 27...
26
	@Override
27
	@Override
27
	protected String getPrefixe() {
28
	protected String getPrefixe() {
28
		return PREFIXE;
29
		return PREFIXE;
29
	}
30
	}
Line -... Line 31...
-
 
31
	
-
 
32
	protected String[] getChampsObligatoires()	{
-
 
33
		return champsObligatoires;
-
 
34
	}
30
	
35
	
31
	private void initialiser(JSONObject collectionACommentaireListe, boolean chargerCommentaire) {
36
	private void initialiser(JSONObject collectionACommentaireListe, boolean chargerCommentaire) {
32
		if (chargerCommentaire) {
37
		if (chargerCommentaire) {
33
			setCommentaire(new Commentaire(collectionACommentaireListe, false));
38
			setCommentaire(new Commentaire(collectionACommentaireListe, false));
34
		} else {
39
		} else {