1. hibernate manytomany xdoclet stackoverflow.comis this the right way of using it? because it does not work. i have the same thing in the RoleDAO. the two tables for users and roles are generated, but ... |
2. (yet another) Hibernate mapping question, using xdoclet coderanch.com |
3. Need complete example of @hibernate.map xDoclet tag usage coderanch.comThe book "Hibernate A J2EE Developer's Guide" has an extensive section on using xDoclet tags, I would not recommend the book for anything else though. When I went to the Advanced Hibernate course in Atlanta last week, the instructor told us that xDoclet was pretty much dead, as no new versions will be comming out because of EJB3 and Hibernate Annotations, ... |
4. "Any type mappings" with xdoclet? forum.hibernate.org |
5. xdoclet map problem forum.hibernate.orgsorry for re-posting, but i still looking for an answer! i have some problems using the hibernate.map xdoclet tags: one example: i have 2 objects: Person and Address every Address has a type (home, business, ...) each Person can have many different Addresses but only one with a given type. i want to use a hash map inside the person: key ... |
6. Ternary Mapping with XDoclet forum.hibernate.orgjava.lang.NullPointerException at net.sf.hibernate.cfg.Binder.bindMapSecondPass(Binder.java:995) at net.sf.hibernate.cfg.Binder$MapSecondPass.secondPass(Binder.java:1177) at net.sf.hibernate.cfg.Binder$SecondPass.doSecondPass(Binder.java:1135) at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:497) at net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:352) at net.sf.hibernate.tool.hbm2ddl.SchemaExport. |
7. Inheritance mapping with XDoclet forum.hibernate.orgI am having some problems getting XDoclet to generate the mapping I desire. I have three java classes, one is a superclass of the other two. Each of the subclasses should map to their own database table, the superclass maps to no table at all but simply holds properties common to the two subclasses. So I have used XDoclet to provide ... |
8. Mapping a map with XDoclet forum.hibernate.orgI have a Country class which needs to support national (or multi) language. The country names must be in different languages. So I use a map. The key of the map is java.util.Locale, the value is a localized String containing the country name in different languages. Please tell me, if these XDoclet tags are suitable for my requierements: Code: /** * ... |
9. Parent/Child and many-to-one in XDoclet forum.hibernate.orgI have read the parent/child section in the documentation and this *should* be easy, but it just ain't workin. I have a Position object and a PositionSkills object. The Position object can have 0-n skills. Therefore, I have this XDoclet code on my getter: Code: /** * @return a list of skills ... |
10. Mapping problem by using XDoclet !!! forum.hibernate.orgHello, How can I define a mapping by using XDoclet as following: [code] +------+ * +-------+ | MAN | ----------------| CAR | +------+ 1 +-------+ 1 man can have more than 1 cars. 1 car must belongs to 1 man. class Man { Set cars; /** * -------- WhAT IS THE XDOCLET TAG HERE ??? */ public Set getCars() { return ... |
11. mapping of two nested elements with xdoclet forum.hibernate.org... |
12. simple one to many string mapping using xdoclet forum.hibernate.orgI have a class A which contains a messages field. This is a Set of Strings. So on the getMessages() method I have the following javadoc... * @hibernate.set role="messages" * @hibernate.collection-key column="foreignkeyid" * @hibernate.collection-element column="message" type="string" When I attempt to load my mappings I get the following error... [junit] (cfg.Configuration 289 ) Could not configure datastore from input stream [junit] java.lang.NullPointerException ... |
13. Inheritance with an interface using XDoclet forum.hibernate.orgI'm trying to do a test of the inheritance example in chapter 16.1 in the hibernate_reference.pdf. The example has an interface Payment with various subclasses. It uses the table-per-hierarchy mapping. I'm trying to get the same result using XDoclet and the following test classes... Interface IDog - XDoclet - Code: @hibernate.class table="Dog" @hibernate.discriminator column="subclass" type="character" @hibernate.id generator-class="native" type="int" column="Dog_ID" unsaved-value="0" @hibernate.property ... |
14. Mapping generation with XDoclet forum.hibernate.orgi'm sure somebody following the top-design must have faced this problem during the generation of hibernate mapping xmls from pojo code marked with xdoclet tags. in the Employee class i mark getName() as @hibernate.component. i mark all the getters in the Name class as @hibernate.property. when i give this an |
15. Mapping Type: XML or XDoclet? forum.hibernate.orgXDoclet is not THAT limited, it is quite okay for "standard" hibernate usage. Where it gets tricky is for example if you have extensive component and composite-id usage or you need the latest "bleeding edge" hibernate features. So you just have to weight it off if XDoclet saves you developement time and if it is worth the tradeoff/risk. |
16. How to merge xdoclet generated mappings with manually writte forum.hibernate.orgHi Forum, Is there a way to generate partial mappings with xdoclet and merge it with manually written mappings. I am using ant to deploy the applicaiton in Eclipse. I was wondering if it is possible to define composite keys manually and merge it with other mappings generated automatically with xdcolet. Amy help, pointers highly appreciated, TIA |
17. many-to-many mapping using Hibernate 2.1.2/xdoclet 1.2 ?? forum.hibernate.orgI use hibernate 2.1.2 and XDOCLET 1.2. TWO classes/tables have many-to-many relationships: TERMINAL: id - primary key other columns; PROGRAM: id - primary key other columns; TERMINAL can have many programs linked to it and PROGRAMS could belong to more then one TERMINAL; I guess we need linking table, something like: TERMINAL-PROGRAM with two foreign keys: program_id terminal_id Could you give ... |
18. Using XDoclet for mapping file generation forum.hibernate.orgTrying to use the XDoclet with hibernate. Mapping file is not generated when I run the ant with build file containing an entry for creating mapping file. The task is defined as follows based on the example shown in Documentation > Community Area > XDoclet for Hibernate page |
19. XDoclet, table-per-hierarchy mapping with interface as super forum.hibernate.org |
20. setting up mapping with xdoclet, by using a mapping table forum.hibernate.orgthis is what i got at the database: table1(person_city_mapping) column1(person_id) column2(person_city_id) table2(cities) column1(city_id) column2(city_names) table3(persons) column1(persons_id) column2(persons_names) in java i want to have following classe: class person{//all other properties are set (e.g. id and so on) public City getCity(); } how it is possible to realize this trough xdoclet? if any idea thanx.... |
21. Xdoclet mapping, HQL query forum.hibernate.orgHibernate version:2.1.0 Mapping documents:Xdoclet 1.2 Full stack trace of any exception that occurs: org.springframework.orm.hibernate.HibernateQueryException: unindexed collection before []: licence0_.licensees [from au.edu.tlf.lips.model.Licence lic where lic.licensees=?]; nested exception is net.sf.hibernate.QueryException: unindexed collection before []: licence0_.licensees [from au.edu.tlf.lips.model.Licence lic ... |
22. Mapping a single class to two tables? (using XDoclet) forum.hibernate.orgYes, I'll confess up front that I'm a new user, but I have been trying to do my part reading up. I apologize in advance for my ignorance. I tried to access the XDoclet tutorial at http://www.meagle.com:8080/hibernate.jsp but it wasn't found. There may be a better way of going about this, and any advice would be appreciated. I have a class ... |
23. generating @hibernate.map from XDoclet forum.hibernate.orgHello! I need to generate an One-to-many relationship using the |
24. Correct usage @hibernate.map from XDoclet forum.hibernate.orgDoes anyone can share correct example with @hibernate.map and all its related tags usage with description? I want to use XDoclet to generate one-to-many relationship using map. My own version of mapping usage is similar to the following: Code: .... * @hibernate.map * cascade = "all" ... |
25. generating hibernate mapping files using xdoclet tags forum.hibernate.orgI am new to hibernate, I have just created a simple class and trying to build the hibernate mapping file using ant task. The ant task gets completed without any error but doesn't generate any mapping file. Source code for the java object: Code: /** * @hibernate.class table="PARTY_TB" */ public class Party { long partyId; ... |
26. using xdoclet to generate mapping forum.hibernate.orghello, i'm trying to use xdoclet to generate hibernate mapping i have classes: /** *@hibernate.class table="TKeystone" */ class Keystone { private Integer id; /** *@hibernate.id ... // getter and setter } for this class mapping is generated correctly /** *@hibernate.joined-subclass table="TCast" */ class Cast extends Keystone { ... } for Cast class nothing was generated how to write xdoclet for this ... |
27. How setting Xdoclet mapping lazy="true" on a class forum.hibernate.org |
28. Auto generated mapping with XDoclet forum.hibernate.org |