[Hibernate-JIRA] Created: (HSEARCH-539) Add Indexing Support(out of the box) For Simple Collections, Like Set<Integer>
by Zach Kurey (JIRA)
Add Indexing Support(out of the box) For Simple Collections, Like Set<Integer>
------------------------------------------------------------------------------
Key: HSEARCH-539
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-539
Project: Hibernate Search
Issue Type: New Feature
Components: mapping
Affects Versions: 3.2.0.Final
Environment: N/A
Reporter: Zach Kurey
>From both the documentation and the Hibernate Search In Action book it was unclear to me that simple collections were not able to be indexed out of the box by just adding a @IndexEmbedded or @Field annotation, and instead require a custom field bridge. When I say simple collection I mean Sets/Lists/Collections of Integer/Double/String/Float/etc. It would seem, given the already advanced indexing support in Hibernate Search, that this really should be a basic out of the box feature as I'm sure most of the folks using Search have had to implement such a bridge at some point.
Note that I could still be missing an non-obvious feature or there may be a good reason for not providing it via @IndexEmbedded or @Field automatically.
To be completely clear I have:
@CollectionOfElements
@JoinTable(name="enrollment_groups", joinColumns={@JoinColumn(name="enrollee_id")})
@Column(name="enrollment_group_id")
@IndexedEmbedded
private Set<String> utilityEnrollmentGroups;
If I were to change this to a group of embedded types, everything gets indexed just fine.
For Hibernate libraries in use I have:
Core: 3.5.2
Search: 3.2.0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (HHH-4580) Possible Sybase bug causes AssertionFailure in QueryByExampleTest
by Strong Liu (JIRA)
Possible Sybase bug causes AssertionFailure in QueryByExampleTest
-----------------------------------------------------------------
Key: HHH-4580
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4580
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.0-Beta-2, 3.5.0.Beta-1, 3.3.2, 3.2.4.sp1
Environment: sybase 15
Reporter: Strong Liu
Test QueryByExampleTest.testJunctionNotExpressionQBE fails due to a possible bug in Sybase 15. The same test passes for Sybase 12.5. The test expects two records as a result for a query, but it gets 3. After some debugging with the query that Hibernate generated, I end up with these two simpler ones:
select id from Componentizable where not (name like ? and subName1 like ?)
select id from Componentizable where not (name like 'hibernate' and subName1 like 'ope%')
The first one returns three records, while the second returns two. The interesting part is that if I replace the first parameter in the first query by a hardcoded value ("hibernate"), it still returns 3 records. That means that the problem is probably with the binding of JDBC parameters containing a wildcard % .
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (HHH-5894) [ENVERS] Loading collections from envers entity fails due to QueryException
by Sven Rienstra (JIRA)
[ENVERS] Loading collections from envers entity fails due to QueryException
---------------------------------------------------------------------------
Key: HHH-5894
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5894
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.6.1
Environment: Hibernate 3.6.1
Oracle 10g
Ubuntu
Reporter: Sven Rienstra
Priority: Blocker
When I'm trying to load a collection from an envers entity it fails due to an incorrect HQL query:
Caused by: org.hibernate.QueryException: could not resolve property: domein_id of: nl.protopics.zwip.model.gvo.Faq_AUD [select e from nl.protopics.zwip.model.gvo.Faq_AUD e where e.domein_id = :domein_id and e.originalId.REV.id = (select max(e2.originalId.REV.id) from nl.protopics.zwip.model.gvo.Faq_AUD e2 where e2.originalId.REV.id <= :revision and e.originalId.id = e2.originalId.id) and REVTYPE != :delrevisiontype]
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:75)
at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1465)
at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElementType.java:315)
at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:487)
at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:611)
at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:263)
at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:210)
at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:117)
at org.hibernate.hql.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:113)
at org.hibernate.hql.ast.HqlSqlWalker.resolve(HqlSqlWalker.java:880)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1330)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:4471)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3944)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:2047)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1972)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1972)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:831)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:617)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:244)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:124)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1770)
at org.hibernate.envers.entities.mapper.relation.query.OneAuditEntityQueryGenerator.getQuery(OneAuditEntityQueryGenerator.java:99)
at org.hibernate.envers.entities.mapper.relation.lazy.initializor.AbstractCollectionInitializor.initialize(AbstractCollectionInitializor.java:62)
at org.hibernate.envers.entities.mapper.relation.lazy.proxy.CollectionProxy.checkInit(CollectionProxy.java:50)
at org.hibernate.envers.entities.mapper.relation.lazy.proxy.CollectionProxy.iterator(CollectionProxy.java:70)
mappings:
Domein class, from where I call getFaqs()
@OneToMany(cascade = CascadeType.ALL, mappedBy = "domein")
private List<Faq> faqs = new ArrayList<Faq>();
Faq mapping:
@ManyToOne
private Domein domein;
Works fine with 3.6.0.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (ANN-814) OneToOne Unidirectional Support
by Rachit (JIRA)
OneToOne Unidirectional Support
-------------------------------
Key: ANN-814
URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-814
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.4.0.GA
Environment: Oracle 10g, Java 1.5
Reporter: Rachit
Priority: Blocker
I tried hard for unidirectional OneToOne mapping as below:
@Entity
@Table(name = "PARTY")
public class Party{
private Person person;
private String key;
@OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL,)
@PrimaryKeyJoinColumn(name = "PARTY_ID", referencedColumnName = "PERSON_PARTY_ID")
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name = "PARTY_ID", nullable = false)
public String getKey() {
return key;
}
private void setKey(String key) {
this.key = key;
}
}
and it is one-to-one mapped to Person as:
@Entity(name = "Person")
@Table(name = "PERSON")
public class Person {
private String key;
@Id
@Column(name = "PERSON_PARTY_ID")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
}
Now in Person, I deliberately dont have sysUUID as generated as then it generates a unique value for person and the association gets lost. With this mapping hibernate throws the following exception :
Caused by: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): Person.
I read and saw constrained="true" being used in mapping files, which I couldnt use as there is no attribute like it in OneToOne annotation.
Please help me out on this
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (HSEARCH-662) Re-indexing failure in @IndexedEmbedded entities in @ManyToOne relationship
by Kyrill Alyoshin (JIRA)
Re-indexing failure in @IndexedEmbedded entities in @ManyToOne relationship
---------------------------------------------------------------------------
Key: HSEARCH-662
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-662
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.3.0.Final
Environment: Hibernate 3.6.0
Reporter: Kyrill Alyoshin
Priority: Blocker
Attachments: hibernate_search_bug.zip
What is happening seems to be this:
Let's say we have an @Indexed entity called Son. It has @IndexedEmbedded parent property called Dad in @ManyToOne relationship. Dad is @ContainedIn and has @Field on one of its fields. I am demonstrating a condition when more than one Dads are updated in a single session, only one would be re-indexed, the rest will fail to be re-indexed.
I am attaching a simple IDEA project that clearly demonstrates what is going on. I believe that this is a very serious bug. (Note: I removed hibernate-3.6.0.jar from the lib directory to minimize the size of the zip file under 10M, the rest of the jars are there).
Please run BugDemonstrationTest#showBug test method to see everything.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (HHH-4727) Add option to specify foreign key name on table with shared primary key used in one-to-one relationship
by Pavla Nováková (JIRA)
Add option to specify foreign key name on table with shared primary key used in one-to-one relationship
---------------------------------------------------------------------------------------------------------
Key: HHH-4727
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4727
Project: Hibernate Core
Issue Type: Improvement
Components: core
Affects Versions: 3.3.2
Reporter: Pavla Nováková
There is currently no way to specify (user friendly) foreign key name on table with shared primary key used in One-to-One mapping. The most intuitive way would be to
accept @ForeignKey on property level (see the comment in the code below) or on entity level (similar way to usage in joined inheritance) or last option may be add parameter in foreign generator.
{code}
@Entity
public class ExampleEntity implements Serializable {
@Id
@GenericGenerator(name = "foreign-generator", strategy = "foreign", parameters=@Parameter(name="property", value="parentExampleEntity"))
@GeneratedValue(generator = "foreign-generator")
private Long id;
...
@PrimaryKeyJoinColumn
@OneToOne(fetch=FetchType.LAZY, optional=false)
@org.hibernate.annotations.ForeignKey(name="parent_entity_fk") // this is currently ignored
private ParentExampleEntity parentExampleEntity;
...
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[Hibernate-JIRA] Created: (HHH-5847) @OneToOne annotation with optional = true generates an exception when value is null
by guy bashan (JIRA)
@OneToOne annotation with optional = true generates an exception when value is null
-----------------------------------------------------------------------------------
Key: HHH-5847
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5847
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Affects Versions: 3.6.0
Reporter: guy bashan
I am currently in the process of upgrading from Hibernate 3.3 to 3.6.
I didn't have the following problem before the upgrade.
I am getting the following exception when trying to persist an object:
-------------------------------------------------------------------------------------
Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.todacell.ui.model.bo.campaign.Campaign.targetDays
at org.hibernate.engine.Nullability.checkNullability(Nullability.java:100)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:312)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:203)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:129)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:685)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:677)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:673)
at com.todacell.ui.model.dao.BaseDAO.saveObject(BaseDAO.java:82)
at com.todacell.ui.model.dao.CampaignDAO.saveObject(CampaignDAO.java:23)
at com.todacell.ui.view.bean.campaign.CampaignGeneralInfoBean.saveAction(CampaignGeneralInfoBean.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
... 37 more
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Seems like there is a problem when I am trying to persist the object with: targetDays empty (it should be empty at this point).
This is the bean I am using:
-----------------------------------
@Entity
@Table(name = "cmp_campaign")
public class Campaign implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "campaign_id")
private Integer campaignId;
@Column(name = "name")
@NotNull
@Length(max = 100)
private String name;
@Column(name = "creative_name")
@Length(max = 100)
private String creativeName;
@Column(name = "comments")
@Length(max = 4000)
private String comments;
@ManyToOne
@JoinColumn(name = "advertiser_id")
private Advertiser advertiser;
@ManyToOne
@JoinColumn(name = "agency_id")
private Agency agency;
@OneToMany(mappedBy = "campaign", cascade = {javax.persistence.CascadeType.ALL})
@OrderBy("adId")
@Cascade({org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<Ad> ads;
@OneToOne(mappedBy = "campaign")
@JoinColumn(name = "campaign_id")
@Cascade({org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private DeliveryLimits deliveryLimits;
@OneToOne(mappedBy = "campaign")
@JoinColumn(name = "campaign_id")
@Cascade({org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Cost cost;
@ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinTable(name = "cmp_target_list_option",
joinColumns = {@JoinColumn(name = "campaign_id")},
inverseJoinColumns = @JoinColumn(name = "option_id"))
private Set<ListTargetingParamOption> listTargetingParamOptions;
@OneToOne(optional = true)
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE})
@PrimaryKeyJoinColumn
private LastStatus lastStatus;
@OneToMany(mappedBy = "campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@Sort(type = SortType.COMPARATOR, comparator = TargetKeyword.TargetKeywordComparator.class)
private SortedSet<TargetKeyword> targetKeywords;
@OneToMany(mappedBy = "campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetNumberRange> targetNumberRanges;
@OneToOne(fetch = FetchType.LAZY, optional = true)
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE})
@PrimaryKeyJoinColumn
private TargetDays targetDays;
@OneToMany(mappedBy = "campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@Sort(type = SortType.COMPARATOR, comparator = TargetDayPart.TargetDayPartComparator.class)
private SortedSet<TargetDayPart> targetDayParts;
@OneToMany(mappedBy = "targetTesterPK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@Sort(type = SortType.COMPARATOR, comparator = TargetTester.TargetTesterComparator.class)
private SortedSet<TargetTester> targetTesters;
@OneToMany(mappedBy = "targetLocationPK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetLocation> targetLocations;
@OneToMany(mappedBy = "targetCountryMobileOperatorPK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetOperator> targetOperators;
@OneToMany(mappedBy = "campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetSystem> targetSystems;
@OneToMany(mappedBy = "targetDevicePK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetDevice> targetDevices;
@OneToMany(mappedBy = "targetDeviceOsPK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetDeviceOs> targetDeviceOss;
@OneToMany(mappedBy = "targetIpPK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetIp> targetIps;
@OneToMany(mappedBy = "targetIpRangePK.campaign")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
private Set<TargetIpRange> targetIpRanges;
@ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinTable(name = "cmp_target_publisher",
joinColumns = {@JoinColumn(name = "campaign_id")},
inverseJoinColumns = @JoinColumn(name = "publisher_id"))
@Sort(type = SortType.COMPARATOR, comparator = Publisher.PublisherComparator.class)
private SortedSet<Publisher> targetPublishers;
@Column(name = "source")
@Type(type = "com.todacell.ui.model.persistence.StringValuedEnumType",
parameters = @Parameter(name = "enum", value = "com.todacell.ui.model.bo.system.CampaignSource"))
@NotNull
private CampaignSource source;
@ManyToOne
@JoinColumn(name = "third_party_id")
private ThirdPartyServer thirdPartyServer;
@ManyToOne
@JoinColumn(name = "order_id")
private Order order;
@Column(name = "time_zone")
@NotNull
@Length(max = 50)
private String timeZone;
@Column(name = "status_check_date")
private Date statusCheckDate;
@Column(name = "active")
private Boolean active;
@Column(name = "version_current_date")
private Date versionCurrentDate;
@Column(name = "version_deploy_date")
private Date versionDeployDate;
@Column(name = "category")
@Type(type = "com.todacell.ui.model.persistence.StringValuedEnumType",
parameters = @Parameter(name = "enum", value = "com.todacell.ui.model.bo.system.CampaignCategory"))
@NotNull
private CampaignCategory category;
@ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinTable(name = "cmp_target_site",
joinColumns = {@JoinColumn(name = "campaign_id")},
inverseJoinColumns = @JoinColumn(name = "site_id"))
@Sort(type = SortType.COMPARATOR, comparator = Site.SiteComparator.class)
private SortedSet<Site> targetSites;
public Campaign() {
}
public Integer getCampaignId() {
return campaignId;
}
public void setCampaignId(Integer campaignId) {
this.campaignId = campaignId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCreativeName() {
return creativeName;
}
public void setCreativeName(String creativeName) {
this.creativeName = creativeName;
}
public String getComments() {
return comments;
}
public void setComments(String comments) {
this.comments = comments;
}
public Advertiser getAdvertiser() {
return advertiser;
}
public void setAdvertiser(Advertiser pubAdvertiser) {
this.advertiser = pubAdvertiser;
}
public Agency getAgency() {
return agency;
}
public void setAgency(Agency agency) {
this.agency = agency;
}
public Set<Ad> getAds() {
return ads;
}
public void setAds(Set<Ad> ads) {
this.ads = ads;
}
public DeliveryLimits getDeliveryLimits() {
return deliveryLimits;
}
public void setDeliveryLimits(DeliveryLimits deliveryLimits) {
this.deliveryLimits = deliveryLimits;
}
public Cost getCost() {
return cost;
}
public void setCost(Cost cost) {
this.cost = cost;
}
public Double getPublisherCost()
{
return CampaignPerformanceUtil.getPublisherCost(cost);
}
public LastStatus getLastStatus() {
return lastStatus;
}
public void setLastStatus(LastStatus lastStatus) {
this.lastStatus = lastStatus;
}
public Set<TargetKeyword> getTargetKeywords() {
return targetKeywords;
}
public void setTargetKeywords(SortedSet<TargetKeyword> targetKeywords) {
this.targetKeywords = targetKeywords;
}
public Set<TargetNumberRange> getTargetNumberRanges() {
return targetNumberRanges;
}
public void setTargetNumberRanges(Set<TargetNumberRange> targetNumberRanges) {
this.targetNumberRanges = targetNumberRanges;
}
public TargetDays getTargetDays() {
return targetDays;
}
public void setTargetDays(TargetDays targetDays) {
this.targetDays = targetDays;
}
public Set<TargetDayPart> getCmpTargetDayParts() {
return targetDayParts;
}
public void setCmpTargetDayParts(SortedSet<TargetDayPart> targetDayParts) {
this.targetDayParts = targetDayParts;
}
public Set<TargetTester> getTargetTesters() {
return targetTesters;
}
public void setTargetTesters(SortedSet<TargetTester> targetTesters) {
this.targetTesters = targetTesters;
}
public Set<TargetLocation> getTargetLocations() {
return targetLocations;
}
public void setTargetLocations(Set<TargetLocation> targetLocations) {
this.targetLocations = targetLocations;
}
public Set<TargetDevice> getTargetMobileDevices() {
return targetDevices;
}
public void setTargetMobileDevices(Set<TargetDevice> targetDevices) {
this.targetDevices = targetDevices;
}
public Set<TargetOperator> getTargetCountryMobileOperators() {
return targetOperators;
}
public Set<TargetDeviceOs> getTargetDeviceOss() {
return targetDeviceOss;
}
public void setTargetDeviceOss(Set<TargetDeviceOs> targetDeviceOss) {
this.targetDeviceOss = targetDeviceOss;
}
public Set<TargetIp> getTargetIps() {
return targetIps;
}
public void setTargetIps(Set<TargetIp> targetIps) {
this.targetIps = targetIps;
}
public void setTargetCountryMobileOperators(Set<TargetOperator> targetOperators) {
this.targetOperators = targetOperators;
}
public Set<TargetSystem> getTargetSystems() {
return targetSystems;
}
public void setTargetSystems(Set<TargetSystem> targetSystems) {
this.targetSystems = targetSystems;
}
public SortedSet<Publisher> getTargetPublishers() {
return targetPublishers;
}
public void setTargetPublishers(SortedSet<Publisher> targetPublishers) {
this.targetPublishers = targetPublishers;
}
public CampaignSource getSource() {
return source;
}
public void setSource(CampaignSource source) {
this.source = source;
}
public ThirdPartyServer getThirdPartyServer() {
return thirdPartyServer;
}
public void setThirdPartyServer(ThirdPartyServer thirdPartyServer) {
this.thirdPartyServer = thirdPartyServer;
}
public String getTimeZone() {
return timeZone;
}
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
public TimeZone getTimeZoneObj() {
return TimeZone.getTimeZone(timeZone);
}
public Date getStatusCheckDate() {
return statusCheckDate;
}
public void setStatusCheckDate(Date statusCheckDate) {
this.statusCheckDate = statusCheckDate;
}
public Boolean isActive() {
return active;
}
public void setActive(Boolean active) {
this.active = active;
}
public CampaignCategory getCategory() {
return category;
}
public void setCategory(CampaignCategory category) {
this.category = category;
}
public Date getVersionCurrentDate() {
return versionCurrentDate;
}
public void setVersionCurrentDate(Date versionCurrentDate) {
this.versionCurrentDate = versionCurrentDate;
}
public Date getVersionDeployDate() {
return versionDeployDate;
}
public void setVersionDeployDate(Date versionDeployDate) {
this.versionDeployDate = versionDeployDate;
}
public Set<ListTargetingParamOption> getListTargetingParamOptions() {
return listTargetingParamOptions;
}
public void setListTargetingParamOptions(Set<ListTargetingParamOption> listTargetingParamOptions) {
this.listTargetingParamOptions = listTargetingParamOptions;
}
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public List<Advertiser> getActiveAdvertisers(){
SysDAO dao = DAOFactory.getSysDAO();
return dao.getActiveAdvertisers();
}
public static class CampaignComparator implements Comparator<Campaign>, Serializable
{
public int compare(Campaign campaign1, Campaign campaign2)
{
return campaign1.getName().compareTo(campaign2.getName());
}
}
public SortedSet<Site> getTargetSites() {
return targetSites;
}
public void setTargetSites(SortedSet<Site> targetSites) {
this.targetSites = targetSites;
}
public Set<TargetIpRange> getTargetIpRanges() {
return targetIpRanges;
}
public void setTargetIpRanges(Set<TargetIpRange> targetIpRanges) {
this.targetIpRanges = targetIpRanges;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months