Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
420 changes: 406 additions & 14 deletions DATABASE_VIEW_INTELLIGENCE_CATALOG.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/*
* Copyright 2010-2025 James Pether Sörling
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* $Id$
* $HeadURL$
*/
package com.hack23.cia.model.internal.application.data.party.impl;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* The Class ViewRiksdagenPartyCoalitionEvolutionEmbeddedId.
* Composite key for party coalition evolution tracking (party_1 + party_2 + election_cycle_id + semester).
*/
@Embeddable
public class ViewRiksdagenPartyCoalitionEvolutionEmbeddedId implements Serializable {

/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;

/** The party 1. */
@Column(name = "party_1", nullable = false)
private String party1;

/** The party 2. */
@Column(name = "party_2", nullable = false)
private String party2;

/** The election cycle id. */
@Column(name = "election_cycle_id", nullable = false)
private String electionCycleId;

/** The semester. */
@Column(name = "semester", nullable = false)
private String semester;

/**
* Instantiates a new view riksdagen party coalition evolution embedded id.
*/
public ViewRiksdagenPartyCoalitionEvolutionEmbeddedId() {
super();
}

/**
* Gets the party 1.
*
* @return the party 1
*/
public String getParty1() {
return party1;
}

/**
* Sets the party 1.
*
* @param party1 the new party 1
*/
public void setParty1(final String party1) {
this.party1 = party1;
}

/**
* Gets the party 2.
*
* @return the party 2
*/
public String getParty2() {
return party2;
}

/**
* Sets the party 2.
*
* @param party2 the new party 2
*/
public void setParty2(final String party2) {
this.party2 = party2;
}

/**
* Gets the election cycle id.
*
* @return the election cycle id
*/
public String getElectionCycleId() {
return electionCycleId;
}

/**
* Sets the election cycle id.
*
* @param electionCycleId the new election cycle id
*/
public void setElectionCycleId(final String electionCycleId) {
this.electionCycleId = electionCycleId;
}

/**
* Gets the semester.
*
* @return the semester
*/
public String getSemester() {
return semester;
}

/**
* Sets the semester.
*
* @param semester the new semester
*/
public void setSemester(final String semester) {
this.semester = semester;
}

@Override
public boolean equals(final Object obj) {
return EqualsBuilder.reflectionEquals(this, obj);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}

@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}
Loading
Loading