xdoclet « Development « JPA Q&A





1. xdoclet vs xdoclet2?    stackoverflow.com

I'm updating an old project & my version of xdoclet complains about my Java 1.5 annontations (ArrayList data = ....) when parsing for Hibernate (hibernate3) tags. So my question is this... Is there ...

2. Hibernate XDoclet tutorial    coderanch.com

3. hibernate/xdoclet works in one directory but not another    coderanch.com

I have a simple eclipse project and I cannot get the hibernatedoclet to work. No errors but no hbm files either. So I downloaded the code that accompanies the book XDoclet in Action and ran the build files. Viola -- I get Blog.hbm.xml files. OK, so I move my one pojo ("Person.java") from my eclipse project file to the "XDoclet in ...

4. Error with XDoclet In Hibernate    coderanch.com

Dear All, I am getting error while i am generating .hbm.xml files using XDoclet. This is the error i am getting D:\suneel\databasework\LoginApp\WEB-INF\build.xml:41: Couldn't find the class xdoclet.modules.web.WebDocletTask on the classpath: My build.xml file is

5. hibernate & xdoclet wierdness    coderanch.com

Is there any issue with XDoclet and inheritance ? Ive a class called A I've another class B which inherits from A When i run xdoclet on class B - should it automatically run the XDoclet tags in its superclass (ie in A)? The XDoclet tags in my classes are hibernate ones. Class A represents a set of generic columns that ...

7. Xdoclet-hibernet-xml files    forum.hibernate.org

Hello forum, well my week-end is gone,so I need a help. I want to generated Cat.hbm.xml and hibernate.cfg.xml. and here is my build.xml when i run it I get build succesfull but nothing is generated. I have xdcolet tag in the java files. thanks ************************************************************* Hibernate Articles: Query Examples ...

8. XDoclet and custom types    forum.hibernate.org

9. Hibernate, XDoclet and interfaces    forum.hibernate.org

Hi, I have an interface (shortened for demo purposes): Code: /** * @hibernate.class table="tbl_customer" discriminator-value="Customer" * @hibernate.discriminator column="discrim" */ public interface Customer extends Auditable { /** * @hibernate.id generator-class="sequence" * @hibernate.generator-param name="sequence" value="seq_customer" */ public Long getId(); public void setId(Long ...





10. Starting out, xdoclet or htbml file?    forum.hibernate.org

I am just starting out with hibernate. If I do not have any code, data design, database, nothing at all.... Should I create a hbml file and generate stuff from there, or should I code my java classes and generate from there? I feel that I would rather start with a hbml file and let that drive my ddl and java ...

11. Should I use XDoclet with Hibernate 2?    forum.hibernate.org

We're using Hibernate 2.1b6 with XDoclet (built from CVS) and it works great. I ran into the multi-column collection key problem, but I changed hibernate-collections.xdt to handle multiple @hibernate.collection-key elements. I've included a patch below to make this change, I don't know what's going to happen with line wrapping, so be careful if you use it. This change works just fine ...

12. many-to-many with XDoclet    forum.hibernate.org

Firstly there is a typo in the Xdoclet tags in the users for the collection index. Other than that I work better looking at the hbm then I mentally map it back to XDoclet. Why don't you create a test mapping and get it to work then map it back to XDoclet, eg, add/change tags until it generates what your expecting. ...

13. Hibernate, XDoclet and multi-tier design    forum.hibernate.org

I am using Hibernate (could be any other O/R tool) to provide data persistence for a web application. The Hibernate 'domain' classes are hand-coded to include XDoclet tags for O/R mapping. I have a small number of 'first level' objects (where indepedant PK lookups would be used) and a larger number of second-level objects where access is always via a first-level ...

14. [ANN] Xdoclet 1.2 final is out.    forum.hibernate.org

15. BigInteger + XDoclet problem    forum.hibernate.org

When I change in my domain model type Integer to BigInteger, hibernate xdoclet ant task fail with error : (TemplateEngine.invokeMethod 573 ) Invoking method failed: xdoclet.modules.hibernate.HibernateTagsHandler.ifHasCompositeId, line=107 of template file: jar:file:C:\java\projects\excom2lib\xdoclet-1.2\lib\xdoclet-hibernate-module-1.2.jar!/xdoclet/modules/hibernate/resources/hibernate.xdt If I use f.e. Long instead of Integer, everything works ok (both cases, Integer and Long). Can you help me anybody? Thaks in advance.

16. one-to-many (using XDoclet) question    forum.hibernate.org

Newbie Joined: Wed Jan 21, 2004 2:56 pm Posts: 9 I am attempting to create a one-to-many relationship between 2 data objects using hibernate and xdoclet. I have been through much of the documentation, but still need some help. I have 2 classes: Album and Image, both listed below (in part). The superclass contains the generated id. : [quote] /** * ...





17. xdoclet and many to many    forum.hibernate.org

Hello, I'm using xdoclet to generate my hibernate mapping files but I have a problem when I'm trying to generate a many to many relationship. I have two tables which have a many to many relationship. They are linked to eachother with a third table which also contains some extra properties except the keys of the others. I have three separate ...

18. java.lang.NoSuchMethodError: xdoclet.DocletTask.getXJavaDoc    forum.hibernate.org

Hello forum, i am trying to automaticaly genete some hbm.xml files from some java source files . Here is the target I run in the build.xml, when I run it I get the errors that comes after the target *************************************************************

19. XDOCLET PB    forum.hibernate.org

20. XDoclet problem    forum.hibernate.org

Regular Joined: Mon Oct 20, 2003 3:14 am Posts: 53 Location: Sterling, VA, USA I use JBuilder 8 as my IDE, which has Ant 1.5.1, but Ant is not it's default build facility, so I've never had the fortune of using Ant or XDoclet before. That being said, I'm posting here, rather than in the tools forum :-) First off, I'm ...

21. xdoclet + hibernatecfg    forum.hibernate.org

22. XDoclet defective?    forum.hibernate.org

Hello, I'm trying to run the [hibernatedoclet] task from a build script . However, the XDoclet doesn't parse my Hibernate file. This should be simple, but I've been working on this for several weeks with no success. Have read most available tutorials and online instructions on the topic, but am mainly using http://www.hibernate.org/66.html . There is no output other than the ...

23. Hibernate Xdoclet Many-To-Many Example    forum.hibernate.org

Does anyone have a simple example of how to create a many-to-many relationship using Hibernate's XDoclet. The simplest I can think of is a common security example. Where many permissions exist, and can be assigned to many groups. Permission - id - name Group - id - name - permissions GroupPermissions - groupId - permissionId Any help or a page link ...

24. Hibernate Xdoclet question    forum.hibernate.org

Hibernate version:2.1.1 Name and version of the database you are using:MySQL 4 I have two class: Rights -------- Long: id ConditionType:conditionType List:conditionTypeValues ConditionTypeValue ------------------------ Long: id String: value Boolean: hasText I have implemented a unidirectional many-to-many relationship between the two classes; I'm using hibernate with Xdoclet so the code I've written in Rights.java is as follows: Code: /** ...

25. Can we use XDoclet with Hibernate3.0    forum.hibernate.org

26. Help!! XDoclet Tag    forum.hibernate.org

Dear Members I have a situation wherein, i have an association table. The association table has references to tables and each of those two tables have composite primary keys. For Example, Table "One" has composite pk of x+y and Table "Two" has composite pk of p+q. So the association table One_Two has columns x,y,p,q. My question is how to define this ...

27. xdoclet for hibernate patch    forum.hibernate.org

28. How to setup indexes in Hibernate using xdoclet?    forum.hibernate.org

29. How would you use Hibernate Xdoclet tags to model this?    forum.hibernate.org

I have been learning to use appfuse recently and have really liked creating tables from hibernate xdoclet tags. I am stumped on this one though. The following tables map a normal many-many relationship using an association table. Below the table definitions is what I would like my classes to be like. How would I get xdoclet to generate these tables based ...

30. Problems building hibernate files with Maven and XDoclet    forum.hibernate.org

Newbie Joined: Sun Jul 10, 2005 10:20 am Posts: 17 Location: London Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: not relevant, not arrived there yet. Mapping documents: http://www.hibernate.org/134.html Full stack trace of any exception that occurs: [DEBUG] Class java.io.OutputStreamWriter loaded from parent loader [hibernatedoclet] [DEBUG] Class org.apache.tools.ant.Project loaded from parent loader [hibernatedoclet] [DEBUG] Finding class xdoclet.ConfigParamIntrospector ...

31. XDoclet and Hibernate Anonation Error    forum.hibernate.org

Hi All, I just want to integrate my code using hibernate with xdoclet tag and new project using hibernate anonation. i got this error. if you have a sample code that use xdoclet tag and mix with anonation in persistance, let me know. Frans [hibernatedoclet] Error parsing File C:\cimande\cimande-last-12-oct-axis\webapps \webwork\WEB-INF\src\java\org\blueoxygen\cimande\components\entity\LovEducationC ode.java:Lexical error: xjavadoc.TokenMgrError: Lexical error at line 26, column 1. Encountered: ...

32. Maven, XDoclet and Hibernate 3    forum.hibernate.org

Yesterday, I made more tests and I realy shure that error is because the Maven version (1.0.2) and maven-XDoclet-plugin... Today I will try using ant to make my xdoclets xml -hbm, etc... At my computer, the XDoclet instaled its ok like the tutorial that i post link before. So, my problem is with Maven! But, I realy need help to make ...

33. Pb Xdoclet    forum.hibernate.org

I use Xdoclet (1.2.3) to generate my mapping files. Here is the basic code I use : Code: package events; /** * @hibernate.class */ public class Basic { /** * @hibernate.id generator-class="native" */ private Long id; public Long getId() { ...

34. Adding non xdoclet params    forum.hibernate.org

Hibernate version: 3.1.3 (I'm working with the NetBeans 5.0 hibernate plug-in.) "To add non XDoclet generator parameters, create a file named hibernate-generator-params-Apa.xml containing the additional parameters and place it in your merge dir", it says in my auto generated mapping file. I dont really understand what that means. Exactly what is it that im going to put inside the additional file. ...

35. many to many , xdoclet dublicate entry problem:    forum.hibernate.org

The following definitions: (snipped)UserRole.java private List users = new ArrayList(); /** * @hibernate.list name="users" table="USER_ROLE_MAP" cascade="none" * @hibernate.collection-many-to-many class="user.model.User" column="USER_FK" * @hibernate.collection-key column="ROLE_FK" * @hibernate.collection-index column="USER_IDX" * @return The hibernate file (User.hbm.xml), created by Xdoclet snipped: User.java private List userRoles = new ArrayList(); /** * @hibernate.list ...

36. how can i create one to many with xdoclet?    forum.hibernate.org

hi.. i've been trying to use xdoclet to create a sample Order and OrderLines classes where Order has a list of OrderLines the Order has a property of orderLines which has: /** * @hibernate.list table = "OrderLine" name= "OrderLine" inverse="true" * @hibernate.collection-key column = "orderNo" * @hibernate.collection-index column ="lineNo" * @hibernate.collection-one-to-many class = "store.OrderLine" * @return */ and OrderLines class has ...

37. how can i create one to many with xdoclet?    forum.hibernate.org

hi.. i have 2 classes Order, and OrderLines. Order Lines have an OrderId and OrderLine properties the Order class has property OrderLines which has: /** * @hibernate.list table = "OrderLine" name= "OrderLine" inverse="true" * @hibernate.collection-key column = "orderNo" * @hibernate.collection-index column ="lineNo" * @hibernate.collection-one-to-many class = "store.OrderLine" * @return */ the build.xml keeps screaming it can't read the mapping file of ...

38. how can i create one to many with xdoclet?    forum.hibernate.org

hi.. i have 2 classes Order, and OrderLines. Order Lines have an OrderId and OrderLine properties the Order class has property OrderLines which has: /** * @hibernate.list table = "OrderLine" name= "OrderLine" inverse="true" * @hibernate.collection-key column = "orderNo" * @hibernate.collection-index column ="lineNo" * @hibernate.collection-one-to-many class = "store.OrderLine" * @return */ the build.xml keeps screaming it can't read the mapping file of ...

39. how can i create one to many with xdoclet?    forum.hibernate.org

hi.. i have 2 classes Order, and OrderLines. Order Lines have an OrderId and OrderLine properties the Order class has property OrderLines which has: /** * @hibernate.list table = "OrderLine" name= "OrderLine" inverse="true" * @hibernate.collection-key column = "orderNo" * @hibernate.collection-index column ="lineNo" * @hibernate.collection-one-to-many class = "store.OrderLine" * @return */ the build.xml keeps screaming it can't read the mapping file of ...

40. how can i create one to many with xdoclet?    forum.hibernate.org

41. Xdoclet one-to-one problem    forum.hibernate.org

Hello I want to do a relation one-to-one (PERSON) 1 ----------->1 (ADDRESS) (PERSON) 1 ----------->1 (INFO) how can I do with xdoclet? I don't understand where I must use the generator-class="foreign" like this /** * @hibernate.id generator-class="foreign" * @hibernate.generator-param name="property" value="???" * */ and where the "native" generator I think the native in Person and foreign in Address and Info or? ...

42. XDoclet for Hibernate 3.1.3    forum.hibernate.org

Hi, I had a previous project developed with Hibernate 3.0. I now downloaded the Hibernate 3.1.3. However when I try to create my hbm files using X-Doclet it gives me an error telling me that lazy="no-proxy" is not supported. At the moment I have the following jar file for xDoclet; xdoclet-hibernate-module-1.2.3.jar. However I do not know from where to download XDoclet ...

43. rookie - problem with xdoclet 2 - ant doesnt work!!    forum.hibernate.org

Newbie Joined: Mon Mar 12, 2007 8:47 pm Posts: 5 Hello guys i have a problem with xdoclet to create the hbm.xml files related with the composite keys after see in google it seems that the solution is xdoclet2 well after read the information, like http://www.hibernate.org/284.html , i try do use the example configuration and well i used to work only ...

44. hibernate xdoclet tags    forum.hibernate.org

hi, i am trying to add hibernate xdoclet tags to my POJOs. for the simple tags i can type in the tags and i am able to generate the mapping files from it. however, to help in going further it would be nice to have the help that IDEs like Eclipse provide by showing you all the available options that you ...

45. hibernate xdoclet set I AM LOST    forum.hibernate.org

hello i am stuck can anyone help please... all of this works fine for mapping and retrieving data, BUT when i save a new object i get an error because the channelid is column in my table and has a foreign key relation. what do i need to add to the xdoclet hibernate.set to fix this? or what do i need ...

46. need help in xdoclet tag    forum.hibernate.org

I have used the same in my XDoclet attributes in my POJO. But the generated hbm.xml file has that includes all properties of my bean. So I have to manually write some thing like this: Code:

47. simple questions on xdoclet hibernate    forum.hibernate.org

My project is uisng xdoclet -hibernate1.2.3 , I reffered to xdoclet site for tutorials on using the tags but did not find one, Please help me find the resource which has some brief description =on using xdoclet hibernate tags. Any how here are my few of many questions This is the tag I used for Id /** The getter method for ...