[Hibernate-JIRA] Created: (HSEARCH-183) @IndexedEmbedded(prefix="") should either be forbidden or fixed with duplicate ID fields
by Stephane Epardaud (JIRA)
@IndexedEmbedded(prefix="") should either be forbidden or fixed with duplicate ID fields
----------------------------------------------------------------------------------------
Key: HSEARCH-183
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-183
Project: Hibernate Search
Issue Type: Improvement
Components: mapping
Affects Versions: 3.0.1.GA
Reporter: Stephane Epardaud
If all my entities have their ID property named "id" and they use @IndexedEmbedded(prefix="") then there will be several fields named "id" per document.
This results in very unfortunate behaviour when indexes are updated because this id is then used by HS to remove Lucene documents, so instead of removing only the one document we are updating, HS removes all documents whose ID have been embedded in the index.
We use prefix="" in order to accumulate embedded entities' "text" fields into the root entity so that we can search on any "text" field, embedded or not. This is required because there seems to be no support for a term wildcard such as "*.text:foo" which would search on any term ending by ".text" for the string "foo".
Either prefix="" is supported, and this behaviour should be changed, or at the very least trigger a visible warning, or it is not supported and it should be documented and an exception should be thrown.
Since it is behaviour I need, I favour supporting it, so I've patched DocumentBuilder to store the ID of the root entity in a special field like _hibernate_class, so that when we update the index only the appropriate entity index document is removed. This works well, but has the side-effect of ignoring the name of the ID as specified in @DocumentId.
An alternative would be to still store the root ID is a "special" field, and keep storing the ID under a field name as specified by the user. As long as we only use the "special" ID for index updating all will work well.
I can produce both patches and documentation if you agree (and choose).
--
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
14 years
[Hibernate-JIRA] Commented: (HHH-1310) NULLs in UNION doesn't work in Informix
by Razvan Petrescu (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1310?page=c... ]
Razvan Petrescu commented on HHH-1310:
--------------------------------------
Actually this has nothing to do with SELECT * FROM (SELECT * FROM t), but with Informix dialect - at last as of 2011.
Informix, as other databases requires a type cast for SELECT NULL FROM TABLE
The Informix Dialect has to override the "getSelectClauseNullString" method. The following code works and was
adapted from Terradata dialect:
@Override
public String getSelectClauseNullString(int sqlType) {
String v = "null";
switch (sqlType) {
case Types.BIT:
v = "cast(null as boolean)";
break;
case Types.TINYINT:
case Types.SMALLINT:
case Types.INTEGER:
case Types.BIGINT:
v = "cast(null as integer)";
break;
case Types.FLOAT:
case Types.REAL:
case Types.DOUBLE:
v = "cast(null as float)";
break;
case Types.NUMERIC:
case Types.DECIMAL:
v = "cast(null as decimal)";
break;
case Types.CHAR:
case Types.VARCHAR:
case Types.LONGVARCHAR:
v = "cast(null as varchar(255))";
break;
case Types.DATE:
v = "cast(null as date)";
break;
case Types.TIME:
case Types.TIMESTAMP:
v = "cast(null as datetime year to fraction)";
break;
case Types.BINARY:
case Types.VARBINARY:
case Types.LONGVARBINARY:
case Types.NULL:
case Types.OTHER:
case Types.JAVA_OBJECT:
case Types.DISTINCT:
case Types.STRUCT:
case Types.ARRAY:
case Types.BLOB:
case Types.CLOB:
case Types.REF:
case Types.DATALINK:
case Types.BOOLEAN:
break;
}
return v;
}
> NULLs in UNION doesn't work in Informix
> ---------------------------------------
>
> Key: HHH-1310
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1310
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.1
> Environment: Informix 10
> Reporter: Tomasz Bech
> Priority: Critical
>
> Informix simply doesn't support phrase: 'select null from table'
> So UNION in inheritance doesn't work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[Hibernate-JIRA] Created: (HHH-6907) Long "in" lists in queries results in a Java stack overflow exception.
by Vyacheslav (JIRA)
Long "in" lists in queries results in a Java stack overflow exception.
----------------------------------------------------------------------
Key: HHH-6907
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6907
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.9, 3.6.8
Environment: Windows 7 x64, apache-maven-3.0.3, downloaded from github sources
Reporter: Vyacheslav
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.038 sec <<< FAILURE!
testLongInElementsByHQL(org.hibernate.test.criteria.LongInElementsTest) Time elapsed: 2.561 sec <<< ERROR!
java.lang.StackOverflowError
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:391)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at antlr.BaseAST.toStringList(BaseAST.java:341)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
The same as in https://hibernate.onjira.com/browse/HHH-2166 but in 3.6.8, 3.6.9 build.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[Hibernate-JIRA] Created: (JPA-26) high-performance reading using non-jta datasource
by Ibrahim Abu Ghosh (JIRA)
high-performance reading using non-jta datasource
-------------------------------------------------
Key: JPA-26
URL: http://opensource.atlassian.com/projects/hibernate/browse/JPA-26
Project: Java Persistence API
Issue Type: Improvement
Environment: JBoss AS 6, Hibernate 4.0 Final
Reporter: Ibrahim Abu Ghosh
Priority: Minor
can we optimize reading performance by using non-jta-data-source along with jta-data-source, ex:
<persistence-unit name="myPU">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:TxDS</jta-data-source>
<non-jta-data-source>java:NoTxDS</non-jta-data-source>
...
</persistence-unit>
when a method with no transaction context it will use NoTxDS else TxDS.
thanks
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[Hibernate-JIRA] Deleted: (BVAL-254) silk to tailor clothes
by Hardy Ferentschik (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-254?page=c... ]
Hardy Ferentschik deleted BVAL-254:
-----------------------------------
> silk to tailor clothes
> ----------------------
>
> Key: BVAL-254
> URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-254
> Project: Bean Validation
> Issue Type: Story
> Reporter: tfgfghg
> Original Estimate: 212h
> Remaining Estimate: 212h
>
> Wedge
> "Death is final, the young master so that you do not ..."
> "Shut up! Shut up shut up shut up ─ ─"
> Helian Yaohua hair that canthus crack, grim look frightening, messy hair, the night that do not meet the eye, covered with red bloodshot eyes, he hissed growled, hoarse <a href=" http://www.savemalls.com/products/Handbags-c4_p1.html "> wholesale handbags from china</a> voice thick Yin, protruding blue veins on the back of the hand, hands, cover your bladder doom room at no gain a slender grip show the shoulder, great strength, but will not lead to fiber sore shoulder masters trained, enjoin, she cried and said he would rather he hurting her! She reluctantly let him Minchun her frown! Willing to struggle against her in his arms ... ... and do not like her at the moment, to teach people to despair of silence and gentle, cold nestled in his chest, died.
> "You, you want to restrain their grief Yeah ... ... ... ... little lady she has already gone ..." could not bear to see the master crazy, irrational, almost in Helian home Fengshi after 50 veterans <a href=" http://www.amazemalls.com "> wholesale prada handbags </a> tube, high pressure is master Yinhen relentless stare of fear, tells the brutal truth is obvious.
> "Get out! All get out! Word about who would be long-winded, I'll kill who! Roll ─ ─" like a wounded beast Yaohua Helian, who rushed to bite who will close the general madness, he will arms were pulled tightly child, embedded itself in the pit of the stomach, any person to take away her fear, refused to feel ironing there's cheeks had lost temperature and color, not a breath ─ ─
> No one dare speak out of turn the last part, the attention of both sympathy and fear of falling back to Helian Yaohua, they know how this man loved his wife, Li Ying accompanied Enenaiai, four in the mansion can be seen from time to time, less Lady Liu favorite lake, with his thick fur Doukai, gently draped over her shoulders, gentle enough; specifically for the wife planted garden full of Bach Mai Qing Ning, Meiban fun with snow falling, the couple holding a paper umbrellas, walking the meantime ... ...
> They sympathize with the lost loved ones in Helian Yaohua, more fear in Helian Yaohua of lost love. <a href=" http://www.bizonmall.com "> coach handbags outlet </a> The rest do not imagine things have been his gentle and tolerant.
> Helian Yaohua not a good class, he acted Yinhen ruthless, way above the government, excluding stop in front of get in the way things are always quick hard accurate and never relented, no mercy, who is against him, he who removed; who stand with him In the hostile party, he would pick who he has never been an honest caring good officer, placed in front of the money at your fingertips, Gogo finger, gold and silver jewelry have been scrambling to offer to open up trade routes, he bribes, collected peace of mind, his corruption, greed was unbridled, he such a person, and the bureaucratic response between the advance and retreat stunning, he was Guojiu Ye's henchman, secretly as Guojiu Ye purge dissidents, many shady business of the people, Guojiu Helian Yaohua all rely on God to dispose of, which is why the official way all the way Helian Yaohua well, even a corrupt, failed and thus lose power.
> This Helian Yaohua, fondness for his beloved wife Jennifer white embroidery.
> He loved her, regard her as fragile as fine porcelain doll Baotou, holding in the palm of the hand, make every effort to give her the best of all, only needs to change her smile, he can find time for her fine embroidery of the softest grade silk to tailor clothes; he could coax her to eat a few mouthfuls of food, consuming one hundred two thousand gold, and got a rare ingredients, and the appointment of dozens of chefs cooking all kinds of dishes, the eyes of outsiders have seen the bad officials, but also to have so delicate and considerate Shennong affection. However, white embroidered dead chi.
> His love, died.
> The only gentle and inclusive ... ... dead. The party lost its only remaining tenderness, Helian Yaohua what would become one?Not think people are scared to go <a href=" http://www.savemalls.com/ "> Cheap coach handbags </a>"Yee-embroidered ... ... ... ... chi up your embroidery, embroidered chi, chi embroidery, embroidered chi ..."
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[Hibernate-JIRA] Deleted: (BVAL-253) you have not found the woods
by Hardy Ferentschik (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-253?page=c... ]
Hardy Ferentschik deleted BVAL-253:
-----------------------------------
> you have not found the woods
> ----------------------------
>
> Key: BVAL-253
> URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-253
> Project: Bean Validation
> Issue Type: Story
> Reporter: tfgfghg
> Original Estimate: 212h
> Remaining Estimate: 212h
>
> Chun-fang break free
> Author: Mo to natural
> Wedge
> "Woods, Do not you feel better tonight's moon particular?" David shook the hand of the woods, with a blunt Chinese asked.
> "Is it?" The woods wearing a Versace dress absently replied. Busy in Beijing a week, she finally get a new store opening preparations, is planning to take rest for one day back to Nanjing, the [url=" http://www.savemalls.com/products/Handbags-c4_p1.html ] wholesale handbags from china[/url]results today at noon the plane, opposite the romantic nature of the French men grabbed her on the car, mysteriously said to give her a surprise.
> The so-called surprise that she was taken to the suburbs, so a pirate ship on the big summer in this little boat on the river was to the night.
> Of course, she admits that it took the Western point of David's mind, at least, so now she is sitting in an ancient landscape of the boats on, listening to the sounds came faintly stern, quality of food and wine, to look cool and bright moon shining into the surrounding water, sparkling waves glow. In fact, if not around too desolate, too arrogant, then the mosquito, called a scene is pretty romantic.
> "Yes ah yes ah, you see it near the woods, there is a stone, is not that you said the Chinese 'moon pine photos, rock springs high' it?" David's voice reveals himself in the excitement.
> "Oh, really who do not three days, with admiration, ah, that the surrounding environment, and you can see that this mood, great!" Woods looked around the ship a piece of black paint smeared, [url=" http://www.amazemalls.com ] wholesale prada handbags [/url]
> could not help but laugh at one.
> "Actually, that's OK, I was asked to you like this poem, specially took half a day back down." David, when the woods are really praise him instead, he embarrassed them, presumably to prove that he is indeed cramming, he even plans to the entire song "Mountain Autumn Dusk" back out "to the table clean", and "empty-san after the rain, the weather late to fall. moon pine photos, rock springs high ..."
> "Well, well." Woods did not go, busy interrupting him, "I know you powerful, do not pull the text up. To, try this salmon, I have not thought of in this wilderness can eat such a good taste of sashimi. "
> "That is natural." David's pride was palpable, "said the master of my food brought in specially from Japan, craft beautifully!"
> "Oh?" David, [url=" http://www.bizonmall.com ] coach handbags outlet [/url]
> look beyond the woods, behind the bamboo curtain busy pegged that figure, was secretly wondering: either go back and talk to him, see if I can dig these free workshops to master.
> David did not notice her go God, the arm holding the woods, wink and said:
> "But you have not found the woods, lake of the moon that look better than the sky ..."
> Looked at the lake, the woods, is planning to meet with to say something, to see David fed to a red rope, pretending to be mysterious to say: "Do you want to finish the lake of the moon?"
> "Fishing for the moon?" Woods ridiculous, this French guy also romantic too far right, elusive, where is can Laode out?
> "I'm not a monkey, what fishing moon ah." That being said, the woods, or could not bear to sweep David Hing, Flanagan casually casts a rope.
> Red string of the end of the line submerged in water, the woods do not charge any effort to salvage a moon[url=" http://www.savemalls.com/ ] Cheap coach handbags [/url]" shaped crystal box, full of doubts to erase the stains on the lid, the crystal through the crystal lid, the box clearly see the woods which quietly erected a dazzling diamond ring, rough estimate, the diamond should not be less than three carats.
> "How, I said the moon it can be purely monetary." David's eyes shining, taking advantage of the woods in a daze the moment, he took the ring from her hands, one knee, his head affectionately against the woods said:
> "Marry me, the woods."
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[Hibernate-JIRA] Created: (BVAL-254) silk to tailor clothes
by tfgfghg (JIRA)
silk to tailor clothes
----------------------
Key: BVAL-254
URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-254
Project: Bean Validation
Issue Type: Story
Reporter: tfgfghg
Wedge
"Death is final, the young master so that you do not ..."
"Shut up! Shut up shut up shut up ─ ─"
Helian Yaohua hair that canthus crack, grim look frightening, messy hair, the night that do not meet the eye, covered with red bloodshot eyes, he hissed growled, hoarse <a href=" http://www.savemalls.com/products/Handbags-c4_p1.html "> wholesale handbags from china</a> voice thick Yin, protruding blue veins on the back of the hand, hands, cover your bladder doom room at no gain a slender grip show the shoulder, great strength, but will not lead to fiber sore shoulder masters trained, enjoin, she cried and said he would rather he hurting her! She reluctantly let him Minchun her frown! Willing to struggle against her in his arms ... ... and do not like her at the moment, to teach people to despair of silence and gentle, cold nestled in his chest, died.
"You, you want to restrain their grief Yeah ... ... ... ... little lady she has already gone ..." could not bear to see the master crazy, irrational, almost in Helian home Fengshi after 50 veterans <a href=" http://www.amazemalls.com "> wholesale prada handbags </a> tube, high pressure is master Yinhen relentless stare of fear, tells the brutal truth is obvious.
"Get out! All get out! Word about who would be long-winded, I'll kill who! Roll ─ ─" like a wounded beast Yaohua Helian, who rushed to bite who will close the general madness, he will arms were pulled tightly child, embedded itself in the pit of the stomach, any person to take away her fear, refused to feel ironing there's cheeks had lost temperature and color, not a breath ─ ─
No one dare speak out of turn the last part, the attention of both sympathy and fear of falling back to Helian Yaohua, they know how this man loved his wife, Li Ying accompanied Enenaiai, four in the mansion can be seen from time to time, less Lady Liu favorite lake, with his thick fur Doukai, gently draped over her shoulders, gentle enough; specifically for the wife planted garden full of Bach Mai Qing Ning, Meiban fun with snow falling, the couple holding a paper umbrellas, walking the meantime ... ...
They sympathize with the lost loved ones in Helian Yaohua, more fear in Helian Yaohua of lost love. <a href=" http://www.bizonmall.com "> coach handbags outlet </a> The rest do not imagine things have been his gentle and tolerant.
Helian Yaohua not a good class, he acted Yinhen ruthless, way above the government, excluding stop in front of get in the way things are always quick hard accurate and never relented, no mercy, who is against him, he who removed; who stand with him In the hostile party, he would pick who he has never been an honest caring good officer, placed in front of the money at your fingertips, Gogo finger, gold and silver jewelry have been scrambling to offer to open up trade routes, he bribes, collected peace of mind, his corruption, greed was unbridled, he such a person, and the bureaucratic response between the advance and retreat stunning, he was Guojiu Ye's henchman, secretly as Guojiu Ye purge dissidents, many shady business of the people, Guojiu Helian Yaohua all rely on God to dispose of, which is why the official way all the way Helian Yaohua well, even a corrupt, failed and thus lose power.
This Helian Yaohua, fondness for his beloved wife Jennifer white embroidery.
He loved her, regard her as fragile as fine porcelain doll Baotou, holding in the palm of the hand, make every effort to give her the best of all, only needs to change her smile, he can find time for her fine embroidery of the softest grade silk to tailor clothes; he could coax her to eat a few mouthfuls of food, consuming one hundred two thousand gold, and got a rare ingredients, and the appointment of dozens of chefs cooking all kinds of dishes, the eyes of outsiders have seen the bad officials, but also to have so delicate and considerate Shennong affection. However, white embroidered dead chi.
His love, died.
The only gentle and inclusive ... ... dead. The party lost its only remaining tenderness, Helian Yaohua what would become one?Not think people are scared to go <a href=" http://www.savemalls.com/ "> Cheap coach handbags </a>"Yee-embroidered ... ... ... ... chi up your embroidery, embroidered chi, chi embroidery, embroidered chi ..."
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years