javax.persistence.EmbeddedId Java Examples

The following examples show how to use javax.persistence.EmbeddedId. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenericDaoBase.java    From cosmic with Apache License 2.0 6 votes vote down vote up
@DB()
protected String buildSelectByIdSql(final StringBuilder sql) {
    if (_idField == null) {
        return null;
    }

    if (_idField.getAnnotation(EmbeddedId.class) == null) {
        sql.append(_table).append(".").append(DbUtil.getColumnName(_idField, null)).append(" = ? ");
    } else {
        final Class<?> clazz = _idField.getClass();
        final AttributeOverride[] overrides = DbUtil.getAttributeOverrides(_idField);
        for (final Field field : clazz.getDeclaredFields()) {
            sql.append(_table).append(".").append(DbUtil.getColumnName(field, overrides)).append(" = ? AND ");
        }
        sql.delete(sql.length() - 4, sql.length());
    }

    return sql.toString();
}
 
Example #2
Source File: GenericDaoBase.java    From cosmic with Apache License 2.0 6 votes vote down vote up
protected T findById(final ID id, final boolean removed, final Boolean lock) {
    final StringBuilder sql = new StringBuilder(_selectByIdSql);
    if (!removed && _removed != null) {
        sql.append(" AND ").append(_removed.first());
    }
    if (lock != null) {
        sql.append(lock ? FOR_UPDATE_CLAUSE : SHARE_MODE_CLAUSE);
    }
    final TransactionLegacy txn = TransactionLegacy.currentTxn();
    PreparedStatement pstmt = null;
    try {
        pstmt = txn.prepareAutoCloseStatement(sql.toString());

        if (_idField.getAnnotation(EmbeddedId.class) == null) {
            prepareAttribute(1, pstmt, _idAttributes.get(_table)[0], id);
        }

        final ResultSet rs = pstmt.executeQuery();
        return rs.next() ? toEntityBean(rs, true) : null;
    } catch (final SQLException e) {
        throw new CloudRuntimeException("DB Exception on: " + pstmt, e);
    }
}
 
Example #3
Source File: JpaMetaUtils.java    From crnk-framework with Apache License 2.0 6 votes vote down vote up
public static BeanAttributeInformation getUniquePrimaryKey(Class<?> entityClass) {
	BeanInformation entityInformation = BeanInformation.get(entityClass);
	List<String> attributeNames = entityInformation.getAttributeNames();

	BeanAttributeInformation pkAttribute = null;
	for (String attributeName : attributeNames) {
		BeanAttributeInformation attribute = entityInformation.getAttribute(attributeName);
		if (attribute.getAnnotation(Id.class).isPresent() || attribute.getAnnotation(EmbeddedId.class).isPresent()) {
			if (pkAttribute != null) {
				throw new IllegalStateException(
						"compount primary keys not yet support, consider use of EmbeddedId for " + entityClass.getName());
			}
			pkAttribute = attribute;
		}
	}
	if (pkAttribute == null) {
		throw new IllegalStateException("no primary key found for " + entityClass.getName() + ", use @Id or @EmbeddedId");
	}
	return pkAttribute;
}
 
Example #4
Source File: JpaResourceFieldInformationProvider.java    From crnk-framework with Apache License 2.0 6 votes vote down vote up
@Override
public Optional<ResourceFieldType> getFieldType(BeanAttributeInformation attributeDesc) {
    Optional<OneToOne> oneToOne = attributeDesc.getAnnotation(OneToOne.class);
    Optional<OneToMany> oneToMany = attributeDesc.getAnnotation(OneToMany.class);
    Optional<ManyToOne> manyToOne = attributeDesc.getAnnotation(ManyToOne.class);
    Optional<ManyToMany> manyToMany = attributeDesc.getAnnotation(ManyToMany.class);
    if (oneToOne.isPresent() || oneToMany.isPresent() || manyToOne.isPresent() || manyToMany.isPresent()) {
        return Optional.of(ResourceFieldType.RELATIONSHIP);
    }

    Optional<Id> id = attributeDesc.getAnnotation(Id.class);
    Optional<EmbeddedId> embeddedId = attributeDesc.getAnnotation(EmbeddedId.class);
    if (id.isPresent() || embeddedId.isPresent()) {
        return Optional.of(ResourceFieldType.ID);
    }
    return Optional.empty();
}
 
Example #5
Source File: JPAOverriddenAnnotationReader.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
private boolean isProcessingId(XMLContext.Default defaults) {
	boolean isExplicit = defaults.getAccess() != null;
	boolean correctAccess =
			( PropertyType.PROPERTY.equals( propertyType ) && AccessType.PROPERTY.equals( defaults.getAccess() ) )
					|| ( PropertyType.FIELD.equals( propertyType ) && AccessType.FIELD
					.equals( defaults.getAccess() ) );
	boolean hasId = defaults.canUseJavaAnnotations()
			&& ( isPhysicalAnnotationPresent( Id.class ) || isPhysicalAnnotationPresent( EmbeddedId.class ) );
	//if ( properAccessOnMetadataComplete || properOverridingOnMetadataNonComplete ) {
	boolean mirrorAttributeIsId = defaults.canUseJavaAnnotations() &&
			( mirroredAttribute != null &&
					( mirroredAttribute.isAnnotationPresent( Id.class )
							|| mirroredAttribute.isAnnotationPresent( EmbeddedId.class ) ) );
	boolean propertyIsDefault = PropertyType.PROPERTY.equals( propertyType )
			&& !mirrorAttributeIsId;
	return correctAccess || ( !isExplicit && hasId ) || ( !isExplicit && propertyIsDefault );
}
 
Example #6
Source File: InheritanceState.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
public Boolean hasIdClassOrEmbeddedId() {
	if ( hasIdClassOrEmbeddedId == null ) {
		hasIdClassOrEmbeddedId = false;
		if ( getClassWithIdClass( true ) != null ) {
			hasIdClassOrEmbeddedId = true;
		}
		else {
			final ElementsToProcess process = getElementsToProcess();
			for ( PropertyData property : process.getElements() ) {
				if ( property.getProperty().isAnnotationPresent( EmbeddedId.class ) ) {
					hasIdClassOrEmbeddedId = true;
					break;
				}
			}
		}
	}
	return hasIdClassOrEmbeddedId;
}
 
Example #7
Source File: ViewApplicationActionEventPageElementHourlySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ApplicationActionEventPageElementPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "createdDate", column = @Column(name = "EMBEDDED_ID_CREATED_DATE")),
    @AttributeOverride(name = "page", column = @Column(name = "EMBEDDED_ID_PAGE")),
    @AttributeOverride(name = "elementId", column = @Column(name = "EMBEDDED_ID_ELEMENT_ID"))
})
public ApplicationActionEventPageElementPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #8
Source File: ViewRiksdagenCommitteeBallotDecisionSummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ViewRiksdagenCommitteeBallotDecisionEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "id", column = @Column(name = "EMBEDDED_ID_ID")),
    @AttributeOverride(name = "hangarId", column = @Column(name = "EMBEDDED_ID_HANGAR_ID", precision = 20, scale = 10)),
    @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE")),
    @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN"))
})
public ViewRiksdagenCommitteeBallotDecisionEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #9
Source File: ViewApplicationActionEventPageDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ApplicationActionEventPagePeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "createdDate", column = @Column(name = "EMBEDDED_ID_CREATED_DATE")),
    @AttributeOverride(name = "page", column = @Column(name = "EMBEDDED_ID_PAGE"))
})
public ApplicationActionEventPagePeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #10
Source File: ViewApplicationActionEventPageModeHourlySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ApplicationActionEventPageModePeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "createdDate", column = @Column(name = "EMBEDDED_ID_CREATED_DATE")),
    @AttributeOverride(name = "page", column = @Column(name = "EMBEDDED_ID_PAGE")),
    @AttributeOverride(name = "pageMode", column = @Column(name = "EMBEDDED_ID_PAGE_MODE"))
})
public ApplicationActionEventPageModePeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #11
Source File: ViewApplicationActionEventPageElementDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ApplicationActionEventPageElementPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "createdDate", column = @Column(name = "EMBEDDED_ID_CREATED_DATE")),
    @AttributeOverride(name = "page", column = @Column(name = "EMBEDDED_ID_PAGE")),
    @AttributeOverride(name = "elementId", column = @Column(name = "EMBEDDED_ID_ELEMENT_ID"))
})
public ApplicationActionEventPageElementPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #12
Source File: JpaUtil.java    From javaee-lab with Apache License 2.0 5 votes vote down vote up
private boolean isManuallyAssigned(Method method) {
    if (method.getAnnotation(Id.class) != null) {
        return method.getAnnotation(GeneratedValue.class) == null;
    }

    return method.getAnnotation(EmbeddedId.class) != null;
}
 
Example #13
Source File: ViewRiksdagenPartyDocumentDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenDocumentPartySummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "publicDate", column = @Column(name = "EMBEDDED_ID_PUBLIC_DATE")),
    @AttributeOverride(name = "partyShortCode", column = @Column(name = "EMBEDDED_ID_PARTY_SHORT_CODE")),
    @AttributeOverride(name = "documentType", column = @Column(name = "EMBEDDED_ID_DOCUMENT_TYPE"))
})
public RiksdagenDocumentPartySummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #14
Source File: ViewRiksdagenDocumentTypeDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenDocumentTypeSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "publicDate", column = @Column(name = "EMBEDDED_ID_PUBLIC_DATE")),
    @AttributeOverride(name = "documentType", column = @Column(name = "EMBEDDED_ID_DOCUMENT_TYPE"))
})
public RiksdagenDocumentTypeSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #15
Source File: ViewRiksdagenOrgDocumentDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenDocumentOrgSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "publicDate", column = @Column(name = "EMBEDDED_ID_PUBLIC_DATE")),
    @AttributeOverride(name = "org", column = @Column(name = "EMBEDDED_ID_ORG"))
})
public RiksdagenDocumentOrgSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #16
Source File: ViewRiksdagenPoliticianDocumentDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenDocumentPersonSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "publicDate", column = @Column(name = "EMBEDDED_ID_PUBLIC_DATE")),
    @AttributeOverride(name = "personId", column = @Column(name = "EMBEDDED_ID_PERSON_ID")),
    @AttributeOverride(name = "documentType", column = @Column(name = "EMBEDDED_ID_DOCUMENT_TYPE"))
})
public RiksdagenDocumentPersonSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #17
Source File: InspectionResultProcessor.java    From angularjs-addon with Eclipse Public License 1.0 5 votes vote down vote up
private boolean shouldOmitPropertyWithCompositeKey(Map<String, String> propertyAttributes)
{
   // Extract simple type name of the relationship types
   boolean isManyToOneRel = Boolean.parseBoolean(propertyAttributes.get("many-to-one"));
   boolean isOneToOneRel = Boolean.parseBoolean(propertyAttributes.get("one-to-one"));
   boolean isNToManyRel = Boolean.parseBoolean(propertyAttributes.get("n-to-many"));
   if (isManyToOneRel || isNToManyRel || isOneToOneRel)
   {
      String rightHandSideType;
      // Obtain the class name of the other/right-hand side of the relationship.
      if (isOneToOneRel || isManyToOneRel)
      {
         rightHandSideType = propertyAttributes.get("type");
      }
      else
      {
         rightHandSideType = propertyAttributes.get("parameterized-type");
      }
      JavaClassSource javaClass = getJavaClass(rightHandSideType);
      for (Member<?> member : javaClass.getMembers())
      {
         // FORGEPLUGINS-120 Ensure that properties with composite keys are detected and omitted from generation
         if (member.hasAnnotation(Id.class) && !javaClass.hasAnnotation(IdClass.class))
         {
            return false;
         }
         if (member.hasAnnotation(EmbeddedId.class))
         {
            return true;
         }
      }
   }
   return false;
}
 
Example #18
Source File: ViewRiksdagenCommitteeDecisionTypeOrgDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenCommitteeDecisionTypeOrgSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "decisionDate", column = @Column(name = "EMBEDDED_ID_DECISION_DATE")),
    @AttributeOverride(name = "decisionType", column = @Column(name = "EMBEDDED_ID_DECISION_TYPE")),
    @AttributeOverride(name = "org", column = @Column(name = "EMBEDDED_ID_ORG"))
})
public RiksdagenCommitteeDecisionTypeOrgSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #19
Source File: ViewRiksdagenVoteDataBallotPoliticianSummaryWeekly.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID"))
})
public RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #20
Source File: ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID"))
})
public RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #21
Source File: ViewRiksdagenVoteDataBallotPartySummaryWeekly.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "party", column = @Column(name = "EMBEDDED_ID_PARTY"))
})
public RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #22
Source File: ViewRiksdagenVoteDataBallotPoliticianSummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPoliticianEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "ballotId", column = @Column(name = "EMBEDDED_ID_BALLOT_ID")),
    @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN")),
    @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE")),
    @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID"))
})
public RiksdagenVoteDataBallotPoliticianEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #23
Source File: ViewRiksdagenVoteDataBallotPartySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPartyEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "ballotId", column = @Column(name = "EMBEDDED_ID_BALLOT_ID")),
    @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN")),
    @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE")),
    @AttributeOverride(name = "party", column = @Column(name = "EMBEDDED_ID_PARTY"))
})
public RiksdagenVoteDataBallotPartyEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #24
Source File: ViewRiksdagenCommitteeDecisionTypeDailySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenCommitteeDecisionTypeSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "decisionDate", column = @Column(name = "EMBEDDED_ID_DECISION_DATE")),
    @AttributeOverride(name = "decisionType", column = @Column(name = "EMBEDDED_ID_DECISION_TYPE"))
})
public RiksdagenCommitteeDecisionTypeSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #25
Source File: ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID"))
})
public RiksdagenVoteDataBallotPoliticianPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #26
Source File: ViewRiksdagenCommitteeBallotDecisionPoliticianSummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ViewRiksdagenCommitteeBallotDecisionPoliticianEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "id", column = @Column(name = "EMBEDDED_ID_ID")),
    @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID")),
    @AttributeOverride(name = "hangarId", column = @Column(name = "EMBEDDED_ID_HANGAR_ID", precision = 20, scale = 10)),
    @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE")),
    @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN"))
})
public ViewRiksdagenCommitteeBallotDecisionPoliticianEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #27
Source File: ViewRiksdagenVoteDataBallotPartySummaryAnnual.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "party", column = @Column(name = "EMBEDDED_ID_PARTY"))
})
public RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #28
Source File: ViewRiksdagenCommitteeDecisions.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ViewRiksdagenCommitteeDecisionsEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "id", column = @Column(name = "EMBEDDED_ID_ID")),
    @AttributeOverride(name = "hangarId", column = @Column(name = "EMBEDDED_ID_HANGAR_ID", precision = 20, scale = 10)),
    @AttributeOverride(name = "issueNummer", column = @Column(name = "EMBEDDED_ID_ISSUE_NUMMER", precision = 20, scale = 10))
})
public ViewRiksdagenCommitteeDecisionsEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #29
Source File: ViewRiksdagenVoteDataBallotPartySummaryDaily.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "voteDate", column = @Column(name = "EMBEDDED_ID_VOTE_DATE")),
    @AttributeOverride(name = "party", column = @Column(name = "EMBEDDED_ID_PARTY"))
})
public RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId getEmbeddedId() {
    return embeddedId;
}
 
Example #30
Source File: ViewRiksdagenCommitteeBallotDecisionPartySummary.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the value of the embeddedId property.
 * 
 * @return
 *     possible object is
 *     {@link ViewRiksdagenCommitteeBallotDecisionPartyEmbeddedId }
 *     
 */
@EmbeddedId
@AttributeOverrides({
    @AttributeOverride(name = "id", column = @Column(name = "EMBEDDED_ID_ID")),
    @AttributeOverride(name = "party", column = @Column(name = "EMBEDDED_ID_PARTY")),
    @AttributeOverride(name = "hangarId", column = @Column(name = "EMBEDDED_ID_HANGAR_ID", precision = 20, scale = 10)),
    @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE")),
    @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN"))
})
public ViewRiksdagenCommitteeBallotDecisionPartyEmbeddedId getEmbeddedId() {
    return embeddedId;
}