code-generation

Do you generate your data dictionary?

Do you generate your data dictionary? If so, how? I use extended procedures in SQL Server 2005 to hold onto table and field information. I have some queries that create a dictionary out of them, but it's ... meh. Do you have a particular query or tool you use? Do you generate it off of your database diagrams? Googling for "data dictio...

"Holds value of property" in Java code

I got some legacy code with that caption spread out as comment almost in every field. Also appearing is "Setter for property xyz". Just out of curiosity, which Java tool generated this stubs? ...

Parsing XML Files by constructing an Object Model

I've always preferred using XSD.exe/VS.Net to generate schema, generate classes off the schema, deserialize xml file into object tree to parse an XML file. [Well, most of my requirements thus far have made this a perfect choice]. I've a crib though: The class names generated by XSD.exe are weird - meaning XSD.exe strives to keep them u...

XSD Code Generator

Are there any Code Generators that would take a well-formed XML document, and write out an XSD schema based on how the XML document is structured? ...

What are some techniques for code generation?

I'm generating C++ code, and it seems like it's going to get very messy, even my simple generating classes already have tons of special cases. Here is the code as it stands now: http://github.com/alex/alex-s-language/tree/local%2Fcpp-generation/alexs_lang/cpp . ...

T4 Templates - suitable for generating C++ code?

Are there any issues which might make MS's T4 Template code-generation system unsuitable for generating C++ code? ...

CodeDOM & .Net Modules

How do I programmatically embed a .Net module to the assembly generated by CodeDOM? ...

What is model driven development good for?

Microsoft, of Cairo fame, is working on Oslo, a new modeling platform. Bob Muglia, Senior Vice President of Microsoft Server & Tools Business, states that the benefits of modeling have always been clear. In simple, practical terms, what are the clear benefits that Oslo bestows upon its users? ...

hibernate auto-discovery and generation of of database mappings to POJOs

Are there any tools that auto-generate the hibernate POJOs by gathering information from the database? I made a perl script to do this after the schema got changed for the third or fourth time in a project i'm working with and just wondered if there is any established tool that will do this for me as my script is rather crude and needs ...

What automatic code generation tools are available for Castle ActiveRecord classes?

If I have an existing database, I want to be able to automatically code generate the corresponding Castle ActiveRecord C# classes based on the db schema. My primary intent is to avoid manually creating each class. What are my options for code gen tools with templates that can already specifically do this for Castle ActiveRecord? (Note:...

NHibernate - Is there any good tools to assist you with the configuration file?

Is there any GUI-based tools to assist you with writing and maintaining the configuration file? Any code tools to codegen the config file? What are the best ways to make this a little bit easier? Are most people just using Castle ActiveRecord now? ...

Autocreate stub properties for interfaces in C#?

I've switch from VB.NET to C# several months ago, while there are a lot of features I really like in C#, believe it or not, there are some features that I really miss from VB.NET. One of those features is whenever I implemented an interface in VB.NET the stub properties and methods were automatically added for me. Is there any way to...

Possible to modify the C# that Linq To SQL generates?

It would be really handy to be able to somehow say that certain properties in the generated entity classes should, for example, be decorated by (say) validation attributes (as well as Linq To SQL column attributes). Is it a T4 template someplace? Or are there other ways to skin the cat? ...

Do UML and other Modeling languages help when building applications?

Do you use UML o or a domain specific modelling language(DSML)? Do you make up your own modelling language? (A DSML) Does it help getting code written? Do you use them for code generation (or are they otherwise runnable )? Do you use them to make pictures of your system (or do you draw them directly)? ...

Which .NET frameworks allow you to create Business Entities first, then Database

Do any .NET frameworks allow you to create Business Entities first then Database. In other words allow you to use DDD / Persistence Ignorance method of backing into the database later. Any tools that allow the Models/Classes you have written to generate the SQL DDL and migration scripts. Feel free to rework my verbiage, and make it a be...

What are the best Java code generation tools or plugins to use in Eclipse?

I'm aware of the built in code generation and refactoring one can do with the "Source" and "Refactor" menu items in Eclipse. I also use the Commonclipse plugin to easily make use of the Apache Commons classes that build hashCode, toString, equals methods. What other plugins or tools should I be aware of for generating Java source easi...

Does a PHP Generator Framework or reference exist?

Back in the scripted ASP and ColdFusion days, I used to work on projects that would build code generators for ASP or Coldfusion, typically in C++, in order to be more object oriented in application design and not have developers writing scripted code, which often was called "spaghetti code" for it's size and complexity. Since I've been ...

Code generator (.net)

Do you have any experience with T4 and T4 Editor? Can you compare it to CodeSmith or MyGeneration? What code generators do you use? What do you recommend? I want to use it for generatig of SPs. Is there anything else you find code generation useful? ...

How can I generate a Visual Studio 2008 solution manually?

For a project I am doing I need to manually create a .net project. I am currently using a StreamWriter to create the .sln, .csproj and base (empty for now) class. I am also generating the AssemblyInfo.cs class. I have copied exactly the files and folder structure VS.Net creates when you create an empty windows class library project. For...

How can I generate multiple classes from xsd's with common includes?

Aloha I received a few nice xsd files which I want to convert to classes (using xsd.exe) All the xsd's have the same includes, like this: <xs:include schemaLocation="kstypes.xsd" /> <xs:include schemaLocation="ksparams.xsd" /> When I generate a class for each xsd the types declared in these files are duplicated for each original xsd....