The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
5
votes
2 answers
Auto Generate String Primary Key with Annotation in Hibernate
I'm pretty new to Spring Boot and in the model there's an Id (primary key) which is String and I need to auto-generate it when saving new entity.
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private String id;
private String name;
private…

Tharindu Thisarasinghe
- 3,846
- 8
- 39
- 70
5
votes
1 answer
How does the hibernate GenerationType.AUTO work in Oracle?
Using oracle/JPA Hibernate. I imported the schema which has values under student table in below fashion. Here is the example
100
85
80
70
1
I have below code:
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
long id;
Now when a new student is…

user3198603
- 5,528
- 13
- 65
- 125
5
votes
0 answers
Import image in android studio, and generate different sizes
So in Android Studio, there is a tool called asset studio, which is nice.
I'm building my first game for Android and know there are different res folders for different DPI's.
You can let Android Studio generate the different images from one source…

David
- 1,227
- 12
- 23
5
votes
2 answers
Does a programmer's "document template" with tags exist for Windows?
I was wondering (if possible) if there was a program/tool/utility that when I create a new file and provide it with an extension that it creates the appropriate tags automatically?
For example, a new file I create called index.php would have the…

Anthony Forloney
- 90,123
- 14
- 117
- 115
5
votes
2 answers
Can Access generate CREATE TABLE script code like SQL Server can?
I have a MS Access file containing hundred of tables, I should create these tables using C# at runtime. So I should generate a script and use that query inside C# to create the tables.
Is there a way that MS Access can generate this SQL script…

Ehsan Akbar
- 6,977
- 19
- 96
- 180
5
votes
2 answers
Entity Framework Dynamic DbSet for all entities
I have a database mapped with Entity Framework,
I need to implement a generic method for getting a a list of items based on a parameter that I pass:
getGenericList("product"); // returns the list of products
getGenericList("customer"); // returns…

SirZoro
- 151
- 1
- 2
- 10
5
votes
3 answers
D Binding Generation Tool
Is there a tool to automatically create D bindings from C headers? I've hade some problems with obselete D wrappers on github and it would be great to have a tool do all the manual work for me and also assure that my bindings are up-to-date.

Nordlöw
- 11,838
- 10
- 52
- 99
5
votes
2 answers
Auto generate get set methods for Doctrine
I am using Doctrine I have to make a lot of models, and it would be nice if I wouldnt have to do everything manually.
I set and attribute like this:
/**
* @var string $name
*
* @Column(name="Name", type="string", length=100,…

Borut Flis
- 15,715
- 30
- 92
- 119
5
votes
2 answers
How to auto-generate a version string in git
Possible Duplicate:
Enable ident string for Git repos
In my project, every source file (regardless of the language - Java, Python, shell) has a comment line that contains source control information - branch, date of last commit, committer name,…

Amir K
- 53
- 1
- 4
5
votes
2 answers
How do I auto-generate a GUID for a join table?
I'm using Hibernate 4.1.0.Final, JPA 2.0, and MySQL 5.5. I have the following entity:
@GenericGenerator(name = "uuid-strategy", strategy = "uuid.hex")
@Entity
@Table(name = "cb_organization", uniqueConstraints =…

Dave
- 15,639
- 133
- 442
- 830
5
votes
3 answers
Send java object to a rest WebService
I'm searching a nice way to send a java object to my rest web service.
It's possible or not ?
For sample I wan't to send an "User" Object to my rest :
public Class User{
private String name;
private String surname;
public getName(){
…

Martin Magakian
- 3,746
- 5
- 37
- 53
5
votes
3 answers
Automatic documentation comments creation in Vim
Is there to make Vim create a comment blurb based on the filetype when I open a new file?
I am new to Vim. Here is the functionality I am looking for. When I do:
$ vim hello.py
I want the file to start with:
#Date Created: 24 May 2012
#Last…

yayu
- 7,758
- 17
- 54
- 86
4
votes
1 answer
Embed git-describe, date and time in a build during compilation in eclipse
I am using an external builder feature in eclipse to call a bash script that will autogenerate BuildInfo.java class for my project (I've looked here on stackoverflow for a way to embed git-describe and date into an eclipse (non-ant!) build, but…

Dmitry Fink
- 1,032
- 1
- 13
- 31
4
votes
2 answers
What is the point of empty getters and setters, and thus the point of auto generating getters and setters in c#
I sometimes use {get; set;} in c# becuase I am told that sometimes technologies I am working with require them (linq2sql?)
I'm wondering why sometimes a technology may require a private field with a getter and setter (and thus the shorthand is a…

Chris Barry
- 4,564
- 7
- 54
- 89
4
votes
2 answers
grails: randomized auto id's
In a default install of rails when you save the first domain object it gives a fancy randomized id like 785787634 or something. Grails gives 1.
What is the preferred method of making difficult-to-guess and unlikely-to-intersect auto generated ids…

Mikey
- 4,692
- 10
- 45
- 73