Questions tagged [generated]

Do not use. This tag has been used for generated code, generated keys, generated-anything. Too broad.

212 questions
29
votes
4 answers

@Generated Annotation, how do we use it?

I recently read an article talking about the Java annotations, and on this latter comes the @Generated one. They say that it is used for automatically generate code. Could someone explain me that in further with a little example ? All what i found…
Blood-HaZaRd
  • 2,049
  • 2
  • 20
  • 43
27
votes
3 answers

Exclude folder in jacoco coverage report

In my java project I have generated classes which are inside the same package folder as the other classes. I would like to configure jacoco maven plugin to exclude those generated classes and only use classes in the main/src/java folder (not…
troger19
  • 327
  • 1
  • 4
  • 8
24
votes
2 answers

Subquery as generated column in mysql?

Can I create a generated column in table A which sums up a column in table B with a tableA_id of the row in table A? Suppose I have a table of of families, and a table of children. I want a sum of the ages of the children for each family. ALTER…
22
votes
4 answers

Pre-build MSBuild task to update AssemblyInfo not in sync with built exe

I am using a pre-build task in Visual Studio 2008 that invokes msbuild: C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe $(MSBuildProjectDirectory)\version.targets /p:Configuration=$(ConfigurationName) Inside version.targets, I am updating the…
Richard Morgan
  • 7,601
  • 9
  • 49
  • 86
15
votes
1 answer

How to add Java compile-time Custom annotation to Protobuf generated code

I use gRPC framework with Proto 3. We have a java code coverage tool Jacoco which scans java byte code for java "annotation" @Generated in compiled classes and if it has one, it skips that java class from coverage. But Proto-compiler adds this…
Ivan Voroshilin
  • 5,233
  • 3
  • 32
  • 61
14
votes
6 answers

How do I get IntelliJ to recognize gradle generated sources dir?

So I have an XJC javaExec that spins like a top but IntelliJ doesn't recognize the generated output despite having marked generated-src/java as such. Do I need to tweak the idea plug-in or something? Note: The plug-in itself is loaded in subProjects…
user447607
  • 5,149
  • 13
  • 33
  • 55
8
votes
2 answers

All numbers in a given range but random order

Let's say I want to generate all integers from 1-1000 in a random order. But... No numbers are generated more then once Without storing an Array, List... of all possible numbers Without storing the already generated numbers. Without missing any…
K. Torrance
  • 129
  • 7
6
votes
1 answer

Hibernate generating two different sequence Ids for PostgreSQL insert

I have an entity defined with a sequence-generated primary key: @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id_key_gen") @SequenceGenerator(name = "id_key_gen", sequenceName = "id_key_seq") @Column(name = "id", unique =…
Gordon
  • 1,210
  • 5
  • 16
  • 23
5
votes
3 answers

Re-Use types when generating WCF Client Contract Programmatically

Got an app with plugins that generates the WCF Client Contract programmatically and then hooks it up to the plugins interfaces, however im struggling to work out how to get the generated contract to reuse types found in the plugin dlls. Does any…
Lodle
  • 31,277
  • 19
  • 64
  • 91
4
votes
2 answers

NativeScript + Angular - New project Error on Preview: Type AppRoutingModule does not have 'ngModuleDef' property

I installed everything need. The project is the generated one. I don't even have made changes but when I try to preview it and scan the qrcode, I got an Error "Type AppRoutingModule does not have 'ngModuleDef' property". npm 6.14.6 nodejs LTS…
Macawena
  • 39
  • 3
4
votes
3 answers

Combine named Routes and PageView

I'm fairly new to flutter and building my first real app. I implemented a router class and generating named routes from icon buttons for navigation. Next step I want to also switch between the 3 screens by swiping. My structure is: main.dart…
Simon Schork
  • 65
  • 1
  • 5
4
votes
5 answers

Programmatically enable Adobe PDF usage rights

Is there any way to programmatically enable Adobe PDF usage rights from .net code ? I'm using ITextSharp library to fill an XFA Form with XML Data (generated from app), but the output PDF does not have usage rights enabled, thus the users cannot…
danmaier2010
  • 43
  • 2
  • 4
4
votes
5 answers

How to generate a random string with symbols

My code: import random import string random = ''.join([random.choice(string.ascii_letters + string.digits ) for n in range(12)]) So far it prints a string which contains uppercase, lowercase letters and numbers, but I don't know how to make it…
computing245
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

How to generate plain javascript from npm

I just only want to have a ready to use compiled plain javascript file from this repository https://github.com/airbrake/airbrake-js How to make it? It drives me crazy, I don't wan't any bower, npm or whatever - just ONE plain javascript file BTW:…
Alex Xela
  • 41
  • 2
4
votes
2 answers

Android Studio (Intellij) keeps adding second line to modules.xml

In my ~/project/.idea/modules.xml file the 8th line is always repeated. If I delete it, the line is put back whenever I save (auto-save).
SMBiggs
  • 11,034
  • 6
  • 68
  • 83
1
2 3
14 15