[hibernate-dev] Default entity's data access

2010-06-24 Thread Dmitry Geraskov
Hi, guys, who coud tell me what a default data access should be used in case of entity mapping through orm.xml (field/property)? Is it written anywhere? I ask because there is seems a bug in hibernate - it use "property" access by default. Dmitr

[hibernate-dev] Default entity's data access

2010-06-24 Thread Dmitry Geraskov
Hi, guys, who could tell me what a default data access should be used in case of entity mapping through orm.xml (field/property)? Is it written anywhere? I ask because there is seems a bug in hibernate - it use "property" access by default. Dmitr

Re: [hibernate-dev] Default entity's data access

2010-06-24 Thread Dmitry Geraskov
gt; In any case, you can enforce a specific access type in xml using one > of the many ways to explicitly set > the access type, for example > > > --Hardy > > On Thu, 24 Jun 2010 09:57:46 +0200, Dmitry Geraskov > wrote: > >> Hi, guys, >> who could tell me w

[hibernate-dev] Table and quoted names

2010-09-30 Thread Dmitry Geraskov
dn't find any usage of Table#isSchemaQuoted(), and DatabaseMetadata#getTableMetadata(..., isQuoted) called with Table#isQuoted() parameter. Perhaps there should be isQuoted = Table#isQuoted() || Table#isSchemaQuoted() || Table#isCatalogQuoted() ? Dmitry Geraskov. __

[hibernate-dev] Foreign key to not primary key column.

2011-03-02 Thread Dmitry Geraskov
://issues.jboss.org/browse/JBIDE-5461 for more details) Thanks, Dmitry Geraskov Hibernate tools plugins developer. ### Eclipse Workspace Patch 1.0 #P Branch_3_2_5.ga Index: src/org/hibernate/mapping/ForeignKey.java === --- src/org

[hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
problem is I can't use instanceof to determine whether current connection provider is Stoppable, because internally hibernate uses proxyes. What is right way to replace old ConnectionProvider#close()? Dmitry Geraskov ___ hibernate-dev mailing list hibe

Re: [hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
= connectionProvider.unwrap(Stoppable.class); stoppable.stop(); } but condition returns false... Dmitry 01/06/2011 11:22, Dmitry Geraskov wrote: > Hey, guys, > > in Hibernate 3 you had ConnectionProvider#close() method which releases > all the resources used by the connection pr

Re: [hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
Sure the proxy implements Service as actually it implements ConnectionProder which is a rg.hibernate.service.Service and org.hibernate.service.spi.Wrapped. 01/06/2011 11:25, Sanne Grinovero wrote: > 2011/6/1 Dmitry Geraskov: >> Hey, guys, >> >> in Hibernate 3 you had Con

Re: [hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
rappable > which is instead meant to give you access to wrapped objects (the > datasource of a datasource connection provider, e.g.). > > On Jun 1, 2011 3:37 AM, "Dmitry Geraskov" <mailto:dgeras...@exadel.com>> wrote: > > Sure the proxy implements Service as

Re: [hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
e are many sources? Thanks, Dmitry 01/06/2011 12:13, Steve Ebersole wrote: > > Have a look at the latest sources in git... > > On Jun 1, 2011 4:12 AM, "Dmitry Geraskov" <mailto:dgeras...@exadel.com>> wrote: > > Sorry, Steven I didn't understand, could y

Re: [hibernate-dev] Release Connection provider resources

2011-06-01 Thread Dmitry Geraskov
Thanks, Steve, this works. (Unfortunately this didn't fix our tests, but anyway thanks) Dmitry 01/06/2011 14:18, Steve Ebersole wrote: > On 06/01/2011 04:34 AM, Dmitry Geraskov wrote: >> You mean I can't close ConnectionProvider using alpha3? &g

[hibernate-dev] Broken ManagedProviderConnectionHelper

2011-06-02 Thread Dmitry Geraskov
Hi, Steve, I just looked in ManagedProviderConnectionHelper which is used in SchemaExport, SchemaUpdate, SchemaValidator and it is broken. It is never creates a connection, and this make impossible to run SchemaExport, SchemaUpdate, SchemaValidator configured by cfg. I guess the class is going

[hibernate-dev] Wrong JdbcServicesImpl configuration with problematic connection

2011-06-06 Thread Dmitry Geraskov
hibernate4 too, but only if connection can't be established because of SQLException, but not any other problem. Dmitry Geraskov ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Wrong JdbcServicesImpl configuration with problematic connection

2011-06-07 Thread Dmitry Geraskov
Done, please check my pull request. 06/06/2011 15:15, Steve Ebersole wrote: > > Then please create a test case that illustrates this problematic > behavior and ideally create a pull request fixing said behavior > > On Jun 6, 2011 5:01 AM, "Dmitry Geraskov" <mailto:

Re: [hibernate-dev] Wrong JdbcServicesImpl configuration with problematic connection

2011-06-08 Thread Dmitry Geraskov
Here is the link to the request: https://github.com/hibernate/hibernate-core/pull/103 08/06/2011 9:56, Dmitry Geraskov wrote: > Done, > please check my pull request. > > 06/06/2011 15:15, Steve Ebersole wrote: >> Then please create a test case that illustrates this problemat

[hibernate-dev] Change maven repository location in gradle

2011-06-08 Thread Dmitry Geraskov
Hey, guys, I tried to build hibernate source yesterday and I faced a problem with gradle. How can I let it the maven repository location (preferably without changing common build.gradle)? (I don't use default 'user.home/.m2/repository) Any ideas? Dmitr

Re: [hibernate-dev] Wrong JdbcServicesImpl configuration with problematic connection

2011-06-08 Thread Dmitry Geraskov
ndirectly calls driver class loading due to the mentioned change. Also it breaks org.hibernate.test.annotations.SecuredBindingTest which expects the fail in JDBCServices constructor. Dmitry Geraskov 08/06/2011 10:24, Dmitry Geraskov wrote: > Here is the link to the request: > > http

[hibernate-dev] TypeDef annotation

2011-08-16 Thread Dmitry Geraskov
implement org.hibernate.usertype.UserType interface 2. Can it be a primitive type 3. Any other requirements Or would be nice if you point me on some doc which describes al possible usages of the annotation. Thanks, Dmitry Geraskov ___ hibernate-dev mailing

Re: [hibernate-dev] Hibernate and Eclipse

2011-10-07 Thread Dmitry Geraskov
Hi, Strong Liu, can I somehow look at you "draft" hibernate tools for hibernate core 4 implementation? You said there are a lot of code should be rewritten, I guess you try to get rid of Configuration class. My approach was: minimal changes and still use the Configuration clas

Re: [hibernate-dev] Hibernate and Eclipse

2011-10-10 Thread Dmitry Geraskov
yet) > but there are others: > > 1. package change > 2. ServiceRegistry > 3. Junit 4 > > --- > Strong Liu > http://hibernate.org > http://github.com/stliu > > On Oct 7, 2011, at 8:05 PM, Dmitry Geraskov wrote: > >> Hi, Strong Liu, >

[hibernate-dev] Hbm mapping with hibernate 4

2011-11-23 Thread Dmitry Geraskov
t; . This seems like a bug, or I do something wrong? Dmitry Geraskov Exception in thread "main" org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 5 and column 26 in RESOURCE hibernate.cfg.xml. Message: cvc-elt.1: Ca

[hibernate-dev] Quoted names

2012-03-19 Thread Dmitry Geraskov
Hi, guys, I am working on the hibernate tools code generation problem for tables which has quoted names (name, schema or catalog has special symbols(dot for ex.)). Any reason why Table#setName(x) and Table#setSchema(x) have "unquote" logic, but Table#setCatalog(x) does not? Dmitr

Re: [hibernate-dev] Quoted names

2012-03-22 Thread Dmitry Geraskov
I created jira issue for this as nobody replied. https://hibernate.onjira.com/browse/HHH-7195 19.03.2012 17:12, Dmitry Geraskov пишет: > Hi, guys, > > I am working on the hibernate tools code generation problem for tables > which has quoted names (name, schema or catalog has specia

[hibernate-dev] Identify Hibernate version

2012-04-10 Thread Dmitry Geraskov
lease help? Thanks, Dmitry Geraskov ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Identify Hibernate version

2012-04-10 Thread Dmitry Geraskov
> > The version itself comes from build.gradle where the group- and artifact-if > together with the version are defined. > Something like: > > subprojects { subProject -> > // ... > group = 'org.hibernate' > version = '4.1.0-SNAPSHOT' >

[hibernate-dev] Are you support specification?

2012-05-03 Thread Dmitry Geraskov
Hi, guys, I noticed that hibernate excludes unlisted classes even if ** is set to *false*. Here is the text from persistence-2_0-final-spec.pdf: /8.2.1.6 mapping-file, jar-file, class, exclude-unlisted-classes The following classes must be implicitly or explicitly denoted as managed persistence

Re: [hibernate-dev] Are you support specification?

2012-05-03 Thread Dmitry Geraskov
;> and people that do not want to exclude simply don't add this element. >>> >>> It's possible that our parsing does not account for people that use the >>> explicit form to not exclude. Open a JIRA issue please. >>> >>> On 3 mai 2012, at 14:12

[hibernate-dev] Absolute path to hibernate.cfg.xml

2012-05-14 Thread Dmitry Geraskov
Hi, guys, it is possible to set in persistence.xml path to hibernate.cfg.xml. The question is: can this path be absolute and work? Or the path must be classpath relative? This question is important for our plugins ui. Thanks, Dmitry ___ hibernate-dev

Re: [hibernate-dev] Absolute path to hibernate.cfg.xml

2012-05-14 Thread Dmitry Geraskov
t; Also, that is not a "Hibernate development" question. Its a usage > question. Please direct usage questions to either the forum or IRC. > > > On Mon 14 May 2012 06:06:47 AM CDT, Dmitry Geraskov wrote: >> Hi, guys, >> >> it is possible to set in persis

Re: [hibernate-dev] Quoted names

2012-06-19 Thread Dmitry Geraskov
> Dima, which JBIDE/HBX was/is this issue related to ? > > /max > >> On Thu 22 Mar 2012 06:48:37 AM CDT, Dmitry Geraskov wrote: >>> I created jira issue for this as nobody replied. >>> >>> https://hibernate.onjira.com/browse/HHH-7195 >>> >>