[Hibernate-JIRA] Created: (HSEARCH-1049) includePaths bombs on inclusion of id members
by Marc Schipperheyn (JIRA)
includePaths bombs on inclusion of id members
---------------------------------------------
Key: HSEARCH-1049
URL: https://hibernate.onjira.com/browse/HSEARCH-1049
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 4.1.0.Beta2
Reporter: Marc Schipperheyn
Priority: Blocker
When I include id members on includePaths, I get
Found invalid @IndexedEmbedded->paths configured on class nl.project.model.Item, member subitem: item.id
I use ids a lot and in many cases they are all I'm interested in.
E.g.
@IndexedEmbedded(prefix="location.",includePaths={"city.id","city.city","country.id","city.region.id"})
public Address getAddress() {
return address;
}
will indicate all id fields as erronous.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[Hibernate-JIRA] Created: (HHH-6895) Easier annotation definitiopn of increment generator
by Steve Ebersole (JIRA)
Easier annotation definitiopn of increment generator
----------------------------------------------------
Key: HHH-6895
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6895
Project: Hibernate Core
Issue Type: Improvement
Reporter: Steve Ebersole
Priority: Minor
Fix For: 4.1.0
Useful in tests at least. Lot of duplication to specify an increment generator currently:
{code}
@Id
@GeneratedValue( generator="increment" )
@org.hibernate.annotations.GenericGenerator( name = "increment", strategy = "increment" )
public Long getId() { .. }
{code}
Combined with the fact that the increment generator does not accept configuration, would be nice to be able to just say:
{code}
@Id
@GeneratedValue( generator="increment" )
public Long getId() { .. }
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months