file 1 « Map « JPA Q&A





1. Is it worth the effort to move from a hand crafted hibernate mapping file to annotaions?    stackoverflow.com

I've got a webapp whose original code base was developed with a hand crafted hibernate mapping file. Since then, I've become fairly proficient at 'coding' my hbm.xml file. But ...

2. InvalidMappingException Hibernate mapping file...anybody can you give resolution    stackoverflow.com

My mapping file is

<class name="com.myapp.companypojo.Company" table="COMPANY">
        <property column="COMPANYNAME" length="25" name="companyName" not-null="false" type="java.lang.String"/>
        <property column="LOCATION" length="25" name="location" ...

3. Other use for a Hibernate Mapping file    stackoverflow.com

I am trying to define db dependency for a web based application, and was thinking that perhaps the hibernate mappings used in the application might be importable into some sort of ...

4. Using property file in hibernate mapping    stackoverflow.com

I have a two nodes environment using the same database. In the database there is a resource table like RESOURCE_ID, CODE, NODE The content of the NODE column can be 1 or 2 depending on which node ...

5. Constant in Hibernate Mapping Files    stackoverflow.com

I would like to add a value object to a mapped class where one column is fixed depending of the class that contains the component. How can I do something like ...

6. mvn install ignores hibernate mapping files    stackoverflow.com

While installing my project to local repository with mvn install command, hibernate mapping files are excluded from generated JAR. I have the *.hbm.xml files under src/main/resources/traffic_domain/mapping/, so it should be ok as ...

7. how to make a clause in hibernate mapping files?    stackoverflow.com

I want to add a (where) condition in hibernate mapping file when fetching, how could i do that for example fetch="select" where id != 1 ,am not using annotations also, so please ...

8. Why is maven not packaging my hibernate-mapping file?    stackoverflow.com

I'm using Maven 2 and Hibernate for a Java web app. I have a Hibernate-mapping file, Domain.hbm.xml in the same source folder with several domain classes. If I run mvn clean package I ...

9. Unit testing the hibernate mapping file    stackoverflow.com

Just curious to know if there is any framework that helps to test the hibernate mapping schema. I've found ORMUnit, used in "POJOs in Action", but it doesn't seem to be ...





10. Using same hibernate mapping files across multiple projects    stackoverflow.com

There are several java SE apps using the same library and working with the same database via Hibernate (not JPA). Where do I put hibernate mapping files and hibernate config? (so ...

11. Hibernate Mapping Files Ignored    coderanch.com

I have successfully been able to run hiberante hitting my Oracle database with reads, inserts, deletes and updates. Problem is that I can't get the mapping xml files to load. Currently I'm loading each class individually that is obviously not workable for a large scale project. I tried specifying the files in the configuration file without luck with these different attempts: ...

12. problem with hibernate mapping file    coderanch.com

I see my mistake. I correct it, But this time, different error occurred. It say : entity class not found: mysqlHibernate.Hibernate ( this file is Hibernate.hbm.xml) However as you see program parse the file, then it say I could not found I confused The full error is : 2007-09-19 14:58:59,300 INFO [main] (Environment.java:514) - Hibernate 3.2.4.sp1 2007-09-19 14:58:59,320 INFO [main] (Environment.java:547) ...

14. hibernate annotations instead of mapping files    coderanch.com

Hi, I am trying to set up a new project using hibernate annotations instead of mapping files. I am running JBoss 4.2.0-GA. My hibernate-service.xml looks like | | | java:/DefaultDS | | org.hibernate.dialect.OracleDialect | | | java:/hibernate/SessionFactory | | | org.hibernate.cache.HashtableCacheProvider | | true | ...

15. hibernate annotations instead of mapping files    coderanch.com

Hi, I am trying to set up a new project using hibernate annotations instead of mapping files. I am running JBoss 4.2.0-GA. My hibernate-service.xml looks like | | | java:/DefaultDS | | org.hibernate.dialect.OracleDialect | | | java:/hibernate/SessionFactory | | | org.hibernate.cache.HashtableCacheProvider | | true | ...





17. hibernate mapping file..    coderanch.com

18. Creating class files and Hibernate mappings from database    coderanch.com

I have an existing database. Now I'd like to use Hibernate to connect to the database, but I can't make any changes to the table format. What I'm looking for is a script, Eclipse plugin or somesuch, that I can point to the database and have it create the pojo's and Hibernate mapping. Does this exist? So far I haven't been ...

20. Calling Stored Procedure from Hibernate mapping file    coderanch.com

Hi Mark, thanks for your response. I got the following error:- Caused by: org.hibernate.MappingException: Named query not known: select PERSON_DETAILS(ID) from PERSON person where person.ID = 12345 at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70) I have implemented the following code:- public String findPersonDetails(Long perId) { String result; final String queryString="select PERSON_DETAILS(ID) from PERSON person where person.ID = "+perId.longValue(); try { result = executeStoredProcedure(queryString); } catch(RuntimeException re) ...

22. Hibernate mapping files    coderanch.com

Hi , This is regarding hbm file creation in hibernate. In my database i am having 100 tables and i will be using all these tables for my querying.In such case do i need to create 100 hbm and pojo classes? or is there some other way to handle without creating hbm files for all the tables and only for few.Please ...

23. Hibernate--Mapping files or Annotations    coderanch.com

Oh, it's even better than the tutorial given. Really, it's one of the best books you'll ever read, right up there with "Catcher in the Rye." Hubris aside, the book has been very popular and has helped many get started in Hibernate. I'm sure you'll love it. (I'm the author). -Cameron McKenzie

24. Hibernate, Inheritance and storing as file    coderanch.com

Hi all, I already posted this on hibernate forums but got no answer. So I'm for cross-posting but I would like to get an answer. I want to subclass a class from a framework I'm using and persist it. The superclass is rather complex and for reasons following I don't want to persist any of the fields from that superclass. How ...

25. When to declare mapping resources in hibernate configuration files    coderanch.com

Hi, I am using hibernate at DAO layer with spring MVC in my application. As per my understandings we have to declare mapping resources (hibernate mapping files) in hibernate configuration file. What if my application needs addition of tables in future? Does it mean that I will have to add mapping resources in hibernate configuration file and redeploy the project again? ...

26. Can we have more than one class mappings in one hibernate mapping file?    coderanch.com

Hi, Can we have more than one class mappings in one hibernate mapping file? lets say my module has 5 tables so can I logically group 5 class in one hibernate mapping file like the following? ---- column mappings goes here ---- column mappings goes here ---- column ...

28. Hibernate Mapping File    forum.hibernate.org

Hi, I have a MS SQL Server Database. I installed Hibernate Tools for Eclipse and want to create one mapping file for the whole database with reverse engineering. But Hibernate Tools only builts many xml files (for each table a own mapping file). What should i do with Hibernate Tools for Eclipse to get ONE *.hbm.xml for the whole database?

29. Include Mapping calls inside seperate file    forum.hibernate.org

Hello again, another question occured during messing around with hibernate. Is there a way to call a seperate xml file with all hibernate mapping tags? My problem is that I have written a tool that creates the beans and the mapping file. That workes fine for me. But the last step is to include the following line to my ...

30. Question about Hibernate Mapping Files    forum.hibernate.org

Hello everyone, i have a small question about the hibernate mapping files. Does it make sense to set the length attribute on the property element when the type is "integer"??? I thought that the length attribute is only necessary on strings??? When do i use the "precision" and "scale" attributes? thanks in advance best regards maze

31. mapping of tables in maaping file    forum.hibernate.org

33. What will be table and mapping file    forum.hibernate.org

Hi i have following clsaaess using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Model { public class NStud { public int Id { get; set; } public string Name { get; set; } public string Reference { get; set; } public NAddress Address { get; set; } } } using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ...

34. sharing properties among mapping files    forum.hibernate.org

I have a number of database tables that are very similar and I was wondering if there is a way to store the common part of the mapping file in a file that can be included in the other mapping files. An example of what I want to do follows: Current two files: file1.hbm.xml

35. Do I need a mapping file?    forum.hibernate.org

Hello, I am new to Hibernate and need to get something up and running quickly for a test I am doing. I am getting this error: javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: product is not mapped [FROM product p] So I started looking around for "hibernate mapping" and took a look at the hibernate tutorial from here: http://docs.jboss.org/hibernate/stable/ ... ml_single/ The entity class it ...

37. jpamodelgen + Hibernate mapping files?    forum.hibernate.org

38. Mapping files withour java class    forum.hibernate.org

40. "where" attribuge in mapping file being ignored    forum.hibernate.org

I am trying to get the "where" attribute of the class descriptor in the mapping file to work in Hibernate2. I added this to my class descriptor: Code: I turned on SQL display and watched as I tried to select on the material table. No dice. The where clause didn't show ...

41. Just 1 Mapping File ?    forum.hibernate.org

At the moment I have a number of .hbm.xml files (one for each class/table). Is is possible to configure hibernate somehow to read a single mapping file (in WEB-INF) ? What would the name be? Perhaps it can be configured with the Configuration object? Configuration cfg = new Configuration().addClass(Customer.class); sessionFactory = cfg.buildSessionFactory(); Regards, Jeff.

42. hibernate config file without any mappings    forum.hibernate.org

I need to connect to multiple databases so I have created multiple configuration files. For some databases I just need the connection to run some stored procedures, so I do not have any mappings. Question: Can I have a configuration file without mapping in it? Currently, If i try without mappings, my session is not intialized, and get an error: >> ...

43. Problem Reading Mapping Files using Resin    forum.hibernate.org

45. is this mapping file correct ?    forum.hibernate.org

Regular Joined: Thu Dec 25, 2003 12:33 am Posts: 58 Location: Campina Grande, Brasil please, anybody: is this mapping file ok? my doubts are specially in the subclasses pieces. Code:

46. Multiple Mapping files    forum.hibernate.org

I want create separate mapping files for each table, for example i want to separate the following example into two files called Place.hbm.xml,Person.hbm.xml[each class has its own mapping file]. Then how do i associate these two files for one-to-many relationship ? Can some help ? ...

47. Inheritance and mapping files    forum.hibernate.org

Hi, I have following classes in Java : public class A { int i; String s; ... } public class B extends A { ... } In Hibernate documentation, I read : Place each class mapping in its own file. Don't use a single monolithic mapping document. Map com.eg.Foo in the file com/eg/Foo.hbm.xml. This makes particularly good sense in a team ...

48. arbitrary where clause in mapping file    forum.hibernate.org

I'm attempting to use the "arbitrary" where clause to limit the size of some of my 1-Many collections hanging off my objects that may grow to a large size. I'm trying to add something like the following However, Hibernate seems to add the generated table alias for table on both ...

49. Sharing mapping files across applications    forum.hibernate.org

I'm using hibernate 2.1 and jboss 3.2.3. We are trying to implement an architecture where we deploy several Enterprise Services that would be accessible to all apps via a Stateless Session Bean w/ hibernate under the covers. Therefore we have an EAR with these Enterprise services along with the mappings for these services in a SAR. The problem arises when other ...

50. mapping to java.io.File    forum.hibernate.org

1. What you are trying to do is extremely trivial. 2. The "example" you are looking for is, as always with Open Source software, the source code. 3. There is an API documentation for the two trivial methods you have to implement in the Hibernate API documentation. 4. You probably haven't even looked for it.

51. Time consumption due to parsing of map. files    forum.hibernate.org

hi all, I recognized that getting the first access (I mean creating the session factory, session and connection )in an application resumes more appreciable time than getting later accesses. This time difference must be due to the parsing time of the mapping files in the first access. I have an initialier class in my application, which do initiliazition in the openning ...

52. inheritance in mapping files    forum.hibernate.org

53. Sigle Mapping file for Multiple tables    forum.hibernate.org

Hi I am facing a requirement of having single mapping file as wella s single DAO for more than five tables. Is it possible to do so.... The whole scenario is : The requirement is to access various fields in five tables. I want to create single mapping file for all of them which will in turn generate single Value Object. ...

54. Can Mapping Docs import mappings from another file?    forum.hibernate.org

AFAIK you have two possibilities: - Do all the changes you want to do using xerxes and finally fead the resulting Document into the Configuration.addDocument() method. - Feed the original hbm.xml file to Configuration, then call configuration.getClassMapping and apply your changes. Especially in the second case you have to (re)create your session factory afterwards. HTH Ernst

55. Mapping file placement in war files    forum.hibernate.org

[b]Hibernate version:[/b] 2.1 [b]Mapping documents:[/b] n/a [b]Code between sessionFactory.openSession() and session.close():n/a[/b] [b]Full stack trace of any exception that occurs:[/b] 20:43:06,328 ERROR [STDERR] net.sf.hibernate.MappingException: Resource: com/infravio/demo/wamu/dao/ServiceData.hbm.xml not found at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:285) at com.infravio.demo.wamu.services.routerService.RouterServiceSoapBindingImpl$Worker.save(RouterServiceSoapBindingImpl.java:111) at com.infravio.demo.wamu.services.routerService.RouterServiceSoapBindingImpl.submitSvcRequest(RouterServiceSoapBindingImpl.java:39) at com.infravio.demo.wamu.services.routerService.RouterServiceSoapBindingSkeleton.submitSvcRequest(RouterServiceSoapBindingSkeleton.java:80) 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:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:402) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:309) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323) at ...

56. Persisting classes derived from mapping files    forum.hibernate.org

I would like to use the tool to generate classes from mapping files and make this part of my build process. So if, for example, I add a new property to a class it will automatically become part of my compiled code. But in order to add methods to my generated classes I think I need to extend the persisted classes ...

57. Do I need to specify every mapping file?    forum.hibernate.org

AFAIK no. But you can add your own property, get it from the configuration and call the mentioned method. Unfortunately the configuration dtd does not allow to have no mapping tag, also this works fine. So you have to specify a dummy hbm.xml or patch the dtd. Or just put everything into one mapping file. HTH Ernst

58. mapping file    forum.hibernate.org

59. Properties File Constants in Mappings    forum.hibernate.org

[b]Hibernate version:[/b] 2.1.6 I would like to know if it's possible to have properties from hibernate.properties or some other location to be subsituted in mapping files. instead of :

60. Performing XSLT transforms on mapping files    forum.hibernate.org

I'm running into a situation where I have a lot of redundant data per class in my mapping file. I could eliminate a lot of it by applying an XSLT transform to each Hibernate mapping file before Hibernate processes it. Has anyone enhanced the Configuration/SessionFactory to support this? I'd love to see the code.

61. comments in Java code from mapping file    forum.hibernate.org

I notice the information in mapping file (I gen'd it with middlegen) gets written as comment in Java code. This looks specific to hibernate. Is there a way I could put a general comment in the mapping file as meta data and have it written to Java source file? Thanks Rob

62. What's wrong with my mapping file?    forum.hibernate.org

I'm kind of new to Hibernate, and I'm using the eclipse plugin Syncrhonizer to generate the mapping files. Unfortunately when I run a simple JUnit test I get this: [INFO] Environment - Hibernate 2.1.7 [INFO] Environment - hibernate.properties not found [INFO] Environment - using CGLIB reflection optimizer [INFO] Environment - JVM does not support Statement.getGeneratedKeys() [INFO] Environment - JVM does not ...

63. Mapping File Question:    forum.hibernate.org

64. unsaved-value in the mapping file    forum.hibernate.org

65. Get mapping file info    forum.hibernate.org

66. import mapping files    forum.hibernate.org

67. Sample mapping file for mapping multiple tables to one class    forum.hibernate.org

I am trying to map multiple tables - an ALLERGY table and an ALLERGY_AUDIT table that is updated by triggers when changes are made in the ALLERGY table - and would like to map both tables to an abstract class and its concrete descendants. Here are the table definitions: CREATE TABLE ALLERGY ( ALLERGY_KEY INTEGER NOT NULL, ALLERGY_TYPE CHAR(1) NOT NULL, ...

68. non-equi join in mapping file (hibernate 2)    forum.hibernate.org

Hi all, for a whole day I'm trying to build a mapping file in hibernate 2.x which does a non equi join. I have two tables: log ( id int primary key, min_item_id int, max_item_id int); and item ( id int primary key, ... ); What I need to have is a collection of items for a log-object, i.e. "where id ...

69. Problem with my mapping file    forum.hibernate.org

Hi...here is my mapping file. my database is db2 my java file public class CategoryList implements Serializable { private String CTGR_TYPE_CD=null; private ...

71. inheritance and mapping files    forum.hibernate.org

In table per sub-class implementation, is it possible to list the joined-subclass in separate mapping files ( which I am thinking for sure is not possible with current implementation )? I have a base class which is extended by many classes, and I don't want to put all those joined subclass xml definitions in one mapping file. That would make it ...

72. HQL to tranparently use join criteria in mapping file    forum.hibernate.org

lane_sequence ... ...

73. Mapping files naming convention    forum.hibernate.org

The error was [java] net.sf.hibernate.MappingException: Resource: Medhavi.hbm.xml not found [java] at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:334) [java] at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:1013) [java] at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:969) [java] at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897) [java] at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:883) [java] at Main.main(Unknown Source) [java] Exception in thread "main" [java] Java Result: 1 And my Main.java file is: import net.sf.hibernate.cfg.Configuration; import net.sf.hibernate.SessionFactory; import net.sf.hibernate.Session; import net.sf.hibernate.Transaction; import net.sf.hibernate.MappingException; import net.sf.hibernate.HibernateException; import java.lang.Integer; public class Main { public ...

74. Organizing Mapping files into packages    forum.hibernate.org

I have quite a few tables to be mapped and I don't want all the mapping files into one directory. So if I organize the mapping into different packages how to import the pacakge names into the mapping files?. For example here is a mapping file

75. hibernate mapping file location    forum.hibernate.org

76. Reference mapped classes in another HAR file?    forum.hibernate.org

Hi all, I have multiple HARs in my backend server app, each one mapped to a separate database on a common SQL server. Is there anything I can do to get classes mapped in one HAR to reference classes in another HAR? Right now I have a core.har, with some system core operations, and then billing.har, personnel.har, etc. A mapped class ...

77. Cross references in mapping files    forum.hibernate.org

Hi! Here is my problem: I've two eclipse projects; the first contains abstract entities, that will be used in multiply projects. The second is my current project, which contains the first as a reference, so i can use those abstract entities in a production application. I'm using the table per subclass inheritance strategy, to map my entities to database. The problem ...

78. in h3, Can one table mapping to more than one mapping file    forum.hibernate.org

Hi for instance,there are 2 associating tables parent: sys_users, primary key id child: bbs_topics, foreign key userid I want 2 mapping files to bbs_topics,one has userid field still,and the other one use a set named SysUserSet replaced the userid field to associate with SysUsers.Thus,I can get userid contents directly using the first mapping file,and when I want to modify the sys_users's ...

79. Could not read mapping document from file    forum.hibernate.org

I've been getting an error when I run the hbm2ddl ant task after switching to hibernate 3.1 rc2: "Schema text failed: Could not read mapping document from file," followed by the correct path to my mapping xml file, which is also valid. After commenting things out for a while I found that it was getting stuck on a simple string property ...

80. organization of mapping files    forum.hibernate.org

This is probably a silly question. But I am hibernatizing a huge app and I have tons of classes, I am organizing them into different hibernate mapping files. However I have come across instances where I have a class mapping in one file but need access to it in another file. I always get this error: Quote: An association from the ...

81. problem with CDATA in mapping file    forum.hibernate.org

I am using the following query in my mapping file: I am getting this error: The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup. I don't see anything wrong with this query. Does anybody see anything wrong here?

83. Cant read mappings from my mapping file    forum.hibernate.org

When i try to run a hibernate application it shows the following error: 'Error while reading mappings from resource : login.hbm.xml' i having the following files: 1.hibernate.cfg.xml - hibernate config.file. 2.Login.java - a bean file. 3.Login.hbm.xml - mapping file for 'login' table 4.Checking - file which contains 'main' class. is it necessary to create a separeate folder like src,bin for our ...

84. separating mapping files from mapped classes    forum.hibernate.org

I was referring to the mapping element of hibernate.cfg.xml, but this is not useful to you, because you need a differente configuration for that old hibernate... =) Anyway, everything is located with resources... I don't know what are you wanting to do exactily, but separating the .class from the mappings should make no difference.

85. Best way to initialize Hibernate3 mapping files on startup?    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1 Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: Name and version of the database you are using: MySQL 5.0 The generated SQL (show_sql=true): Debug level Hibernate log excerpt: I am currently using a servlet to initilize my hibernate mapping file on ...

86. Mapping Files    forum.hibernate.org

Newbie Joined: Sun Jan 29, 2006 3:37 am Posts: 10 Hibernate version: 3.1 Mapping documents: Code: ...

87. Reading property information from object mapping file    forum.hibernate.org

How would i go about reading property configuration from a mapping file in a java class. I want to write a java class that for any of my object mapping documents i can retrieve info from eg. the database column name for that property, the name of the propety, propety type etc. I know this could be done somehow from the ...

88. Regarding Duplication in Mapping files    forum.hibernate.org

Is it possible to have two mapping files using the same POJO bcoz im getting the error duplicate class mapping. Im referring to the same java Object in two mapping files Code: log4j:WARN No appenders could be found for logger (com.tcs.pdn.dataservices.order.Impl.reviewImpl). log4j:WARN Please initialize the log4j system properly. java.lang.ExceptionInInitializerError at com.tcs.pdn.dataservices.common.HibernateUtil.(HibernateUtil.java:24) at com.tcs.pdn.dataservices.order.dao.ORDOrderDAO.getSessionFactory(ORDOrderDAO.java:52) ...

89. how to i write a mapping file for this?    forum.hibernate.org

...

90. How to write the mapping file    forum.hibernate.org

I have the following class heirarchy (getter/setter excluded) class Question { String text; } class Long extends Question { Integer maxLength; } class Short extends Question { List choices; } class ShortWithAnswer extends Short { } class Choice { String choiceText; } class ChoiceWithAnswer extends Choice { Boolean correct; } Now the list 'choices' will contain Choice objects when the questions ...

91. Problem related to mapping files and invalid column    forum.hibernate.org

hibernate version 3.0 consider following Mapping documents:

92. Business logic in hibernate mapped file-your opinion welcome    forum.hibernate.org

hi, I'm curious how you separate business logic from database. While hibernate maps tables to classes is it OK to put busness logic functions in these classes or perhaps the should be implemented by some kind of interface implemented in some ObjectDAO. On the other hand if business logic is implemented in hibernate mapped classes isn't it putting DAO funcionality into ...

93. Mapping common properties of classes in a common file    forum.hibernate.org

We are using table-per-concrete-class mapping strategy for inheritance. All our tables have ID, VERSION, CREATED_DATE and UPDATED_DATE columns. These properties are defined in a common base class extended by all mapped classes. The problem is that every .hbm file has to define the mapping for these 4 fields. We can not use union-subclass style mapping becuase it seems to force you ...

94. Specify timezone for the mapping file.    forum.hibernate.org

Hi, I worked on Hibernate version: 3.1. I have two datasources (sybase) one db is in NY, the other is in London. I need to talk to these two dbs at the same time. How do I map the timestamp fields for each mapping file? For U.S. I am local so I don't specify the timezone, but how do I do ...

95. I need mapping files to relate tables    forum.hibernate.org

96. Obtain the ID from the mapping file    forum.hibernate.org

97. Typesafe collection defined in mapping file    forum.hibernate.org

In the hbm.xml file that defines my entity, is there a way to create a type-safe collection? For example, I've been using: When I run this through hbm2java, it generates public Set getMyObjs() public void setMyObjs(Set myObjs) I'd prefer it to create a typesafe collection: public Set getMyObjs() public void setMyObjs(Set myObjs) ...

98. How to write mapping files for parent and child tables    forum.hibernate.org

You can have more the one kind of inheritance. If you have one table for each class, you will use inheritance of table for subclass. You should map only the superclass and the subclasses are mapped in the superclass map file.

99. Best Practice for mapping file placement?    forum.hibernate.org

Hello, I was hoping that someone could give me a little insight on this subject. I've been working with Hibernate 3.1.3 for a little while now, though not long enough to be fully aware of how to do everything, and I was looking for an answers to a question I have regarding alternate placement of cfg.xml and hbm.xml files in the ...

100. mapping file not found    forum.hibernate.org

Hi, I am created a simple Hibernate application to insert two values in Oracle table - EVENT, column name are - id number(5) primary key, title varchar2(30). But i am getting following error: Session factory cannot be initialized org.hibernate.HibernateException: /hibernate.cfg.xml not found at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1087) at org.hibernate.cfg.Configuration.configure(Configuration.java:1111) at org.hibernate.cfg.Configuration.configure(Configuration.java:1098) at mypack.util.SessionManager.(SessionManager.java:11) at org.apache.jsp.test_jsp._jspService(test_jsp.java:89) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at ...