12,843 questions
2
votes
3
answers
81
views
PDF Signature Appearance is not Visible
I'm implementing visible digital signatures in PDF documents using incremental updates. I'm generating the signature using a PKCS#7 detached signature and adding a widget annotation to represent the ...
0
votes
1
answer
54
views
Should Lombok annotations be written before others on a class, method, etc.?
I believe I read somewhere that Lombok annotations should typically be placed before any others on a class or other code element, because they should be applied first. That way, code generated by ...
1
vote
1
answer
23
views
Valid targets for @MyDslMarker annotations for Kotlin DSLs and the purpose of annotating functions and properties
Preconditions
The @DslMarker annotation can only be applied to annotation class by design. However, once our own annotation is defined (e.g., annotation class MyDslMarker), it can be applied to any ...
0
votes
1
answer
50
views
How do I use ChartJS Annotations plugin to show patterns instead of colors as a box
I understand that I can use type = label to show image in annotation as describe below
https://www.chartjs.org/chartjs-plugin-annotation/latest/samples/label/image.html
But I'm wondering if it's ...
1
vote
1
answer
47
views
Java: How to prevent non-top level annotations on type?
Java: How to prevent non-top level annotations on type? e.g.,
@Target(value={ElementType.TYPE})
@Retention(value=RetentionPolicy.RUNTIME)
public @interface FooList {
public Foo[] value();
}
@...
1
vote
1
answer
45
views
Annotations on ChartJs shows on top of the plots when opaque is one
I'm trying to use ChartJS, this is what I get when using annotations plugin with opacity = 0.5
box1: {
type: "box",
drawTime: "afterDraw",
yMin: 22,
yMax: 40,
...
1
vote
0
answers
16
views
Lombok's @Builder annotation blocks unit test code coverage
I have the following declarations for a JavaBean class:
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class ClassNameDTO {
// ...
}
When I run IntelliJ coverage configured for ...
0
votes
0
answers
67
views
Create route via Symfony inside a symfony-bundle
I've got a pure Symfony app. I had made own bundle, and want to define routes inside it via annotations/attributes.
I don't want to define routes inside main app space - bundle should be installed and ...
1
vote
1
answer
47
views
Add the percentage of different types of observations in a geom_count plot in ggplot2
A MWE would be:
df <- tibble(ID = c(1:12),
Var1 = c(A, B, C, C, C, A, B, B, C, A, B, C),
Var2 = c(B, B, A, A, C, C, A, A, B, C, A, C)
)
# draw the following plot showing ...
0
votes
0
answers
33
views
How to add row annotation to complex heatmap in r
I am working on plotting a complex heatmap and need to include both column and row annotations in the figure's legend.
I would like to cut the row dendrogram and assign colors to the clusters obtained ...
0
votes
1
answer
18
views
Can't get a service reference from another bundle
I work from onos upgrading. one of the upgrades is that i replace org.apache.felix.scr.
org.osgi.service.component.annotations.
Here's the some bundles onos-api, onos-core-*, onos-app-tunnel-api, onos-...
1
vote
1
answer
49
views
How to annotate dataframe to tmap panels in R?
I am trying to add mean and SD to panel plot created using tmap R package. But each panel contains all the annotations overlapped. Now how can I have single annotations per panel? Here is a minimal ...
1
vote
1
answer
47
views
Dynamic struct field enumeration and attribute parsing in go
I am trying to create custom attribute tags for my go program. These tags will be used with fields, that will pull their values from vault, for e.g. Password string \vault:"password"``. The ...
0
votes
0
answers
100
views
Micronaut Event Loop vs @ExecuteOn(TaskExecutors.BLOCKING)
So the Micronaut docs tell us that Micronaut uses an event loop:
Micronaut framework is built on Netty which is designed around an Event loop model and non-blocking I/O. Micronaut executes code ...
1
vote
1
answer
45
views
Why am I able to use ReverseStringComparator.class as the value of the @SortedComparator annotation when it is not a primitive or a String? [duplicate]
@Entity
@Table(name = "student")
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
// other fields
@ElementCollection
@...
0
votes
0
answers
29
views
org.hibernate.mapping.JoinedSubclass cannot be cast to org.hibernate.mapping.RootClass, two @Id
I am migrating xml configuration to annotations.
I have a class:
@Entity
@Table(name = "INSTRUMENT_OFFERINGS")
@Inheritance(strategy = InheritanceType.JOINED)
public class InstrumentOffering ...
0
votes
1
answer
50
views
How to annotate custom objects on 4000 images? where each image contains many objects
I want to annotate custom objects in around 4.000 images, where each image contains many objects. I cannot accomplish the work by hand as you can understand. I searched on google and here on ...
1
vote
0
answers
27
views
"Cucumber @ParameterType Named Parameter Not Recognized in IntelliJ"
I'm using @ParameterType in Cucumber to define a custom type and assigning a name to it. However, when I reference this name in my @Then step definition, the step in my feature file still shows as ...
0
votes
1
answer
43
views
When should I use @Positive instead of @Min(1) in Spring Boot?
For validating a pagination parameter int size in Spring Boot, I want to ensure the value is greater than 0. I noticed that both @Positive and @Min(1) can be used for this.
Which one is better to use, ...
1
vote
1
answer
27
views
Is there anyway to make Java Custom Annotation Processor with RetentionPolicy SOURCE to work?
I have created a Java Custom Annotation Processor with RetentionPolicy as SOURCE for generating personalized code for me just like Lombok's Getter & Setter.
Unfortunately it didn't worked because ...
1
vote
1
answer
52
views
Log4j fail to discover Plugin when using SBT
I'm working on creating a custom Log4j plugin for my project using SBT 1.9.9 scalaVersion := "2.13.9"
When I specify packages="com.testserver" in the Log4j XML configuration, ...
1
vote
2
answers
84
views
How to show annotations by click on the column in swiftUI Charts
When I try to display the annotation by using onTapGesture, it appears in the middle of the chart.
When I click on the column, it should show my annotation on top of the column, as you can see in the ...
0
votes
1
answer
29
views
Tomcat ignore metadata-complete="true" with servlet 6.1
My application does not use any servlet annotations. That I want skip the scanning for annotations. But it look like that Tomcat 11.0 ignore the metadata-complete="true"attribute. Do I have ...
0
votes
0
answers
12
views
Annotating HiC interactions using HOMER tool
I am working with HiC data of cotton. I have successfully generated significant Interactions using HOMER tool and now am trying to annotate the interations. The interactions file generated by HOMER is ...
-3
votes
2
answers
69
views
Java Spring expected at least 1 bean which qualifies as autowire candidate. Dependency annotations
Spring boot application throws No Qualifying bean of type available: expected at least 1 bean which qualifies as autowire candidate. error at runtime.
Please find my code below.
SpringBoot version : 2....
1
vote
0
answers
71
views
Is possible to define a typedef for complex and composite datatypes in PHP or Laravel?
Is there a way to define a special type just a placeholder for complex return data types?
Builder|Payment|Model
Can I define a typedef for this?
PaymentBuilder => Builder|Payment|Model
And return ...
0
votes
0
answers
45
views
How to Delete an Annotation Using Wagtail Review and Annotator.js on Button Click?
I am working with both Wagtail Review and Annotator.js in my project. I want to add a delete button (an "X" inside a red circle) to annotations, and when clicked, it should delete the ...
0
votes
0
answers
32
views
making one annotation out of severals
I'm using JPA and in almost every entity class, I have the same 3 annotations for my id:
@Entity
public class Club {
private static final String SEQ = "Club_Seq";
@Id
@...
0
votes
1
answer
36
views
Groovy MapConstructor does not instanciate sub list with correct type
i'm having an issue using the @MapConstructor given by groovy.
Given this kind of payload body
// @no-cookie-jar
// @no-log
POST {{host}}/api/collection?logon={{logon}}&key={{key}}
Content-Type: ...
0
votes
0
answers
24
views
AnnotationProcessor using JavaAssist fails to find class, class is not generated because annotations failed to process
I'm trying to create a custom annotation and annotation processor to modify generated classes btyecode using JavaAssist and using gradle to compile the main project and the two annotation modules.
...
0
votes
1
answer
44
views
Changing value passed into custom @Qualifier
Is there a way to change the value passed to a custom @Qualifier, and pass it to the delegating @Qualifier?
I understand that we can create custom qualifiers by
@Qualifier
@Target({ ElementType.FIELD, ...
0
votes
1
answer
70
views
Not creating the .g.dart class in Flutter(Dart)
I have used the json_serializable library in flutter and created a class and created the Annotation of the library i.e. json_serializable in the class as below example:
import 'package:json_annotation/...
1
vote
1
answer
42
views
What are the issues when not using @Column(columnDefinition = "TEXT")?
In my Board entity, there is a field.
private String content;
And, if i run the following query on my database(mysql),
ALTER TABLE board MODIFY content TEXT;
Will there be any issues du to the ...
0
votes
0
answers
27
views
Composition @Repeatable annotations in custom annotation
For integration tests on Spring Boot, I need to combine 2 @Sql annotations into a custom one and transfer only the path to the scripts folder to one of them.
You can pass both paths, but the second ...
0
votes
1
answer
74
views
Where is the implementation of an annotation's effects/behavior?
As per my understanding, an annotation is metadata. which will do its job either at compile time or runtime.
Consider the annotation @Override, which ensure that a method is defined in super-class/...
1
vote
1
answer
57
views
How can I annotate my Django queryset with a count of related objects
I have 3 django models; Machine, Component, and Part.
I am trying to annotate a machine queryset to include the count of unique parts used in that machine.
In the example below, ps1 is used to make f1....
1
vote
0
answers
30
views
Not able to use array of elements in annotation for this case with JCommander library
I am trying to use JCommander library with groovy, I am using this test script based on code on the library documentation, here one of the important part
@Grapes(
@Grab(group='org.jcommander', ...
0
votes
1
answer
31
views
Automatically introduce sample code in gwt
I have implemented some components using Gwt, and I want to display these components and their Java code on the front-end page, providing an example of component usage. What I want to showcase is Java ...
0
votes
0
answers
13
views
When i started my application, spring does not see my been of type IngredientRepository
Description:
Parameter 0 of constructor in tacos.web.DesignTacoController required a bean of type 'tacos.data.IngredientRepository' that could not be found.
Below controller;
package tacos.web;
...
0
votes
0
answers
111
views
Why is -proc:none processing the custom annotations?
I am configuring a CustomAnnotationProcessor in Java 17 in compile time. I found that a way to achieve this is adding an <execution> block to the pom.xml. The solution shows the usage of
<...
0
votes
0
answers
60
views
Annotation not processing in Java
I'm making a library/framework that uses annotation processing for configuration. I've registered my annotation processor with @AutoService(Processor.class) and the javax.annotation.processing....
0
votes
0
answers
19
views
How to create custom @PostAuthorize Annotations that accept returnObject as annotation type?
How does one create custom @PostAuthorized annotations in Java / Kotlin on Spring?
@Service("authorizationService")
class AuthorizationLogic {
fun decide(response: ResponseEntity<...
0
votes
0
answers
56
views
How to add Link Annotation to tag tree with PDFKit?
I'm using PDFKit and Node.js/Javascript to dynamically generate a PDF file.
The PDF should be fully accessible, but there are errors with the accessibility of links and annotations.
The link is ...
1
vote
1
answer
74
views
Add annotation on all methods of the classes present in a given directory
I have a usecase that I have created one annotation for our clients to onboard to our platform. These annotations when present over method intercept the method call and avoid making the production ...
0
votes
2
answers
125
views
How to Provide Runtime Parameters to a Custom Annotation's Interceptor in a Jakarta EE Project?
I'm working on a Jakarta EE project where I have a custom annotation and an associated interceptor. The annotation is used to execute some logic, and it works as expected as a standalone. However, I ...
0
votes
1
answer
73
views
How do I configure Symfony Validator to ignore @OA annotations?
I'm using both OpenAPI OA annotations with Swagger and Symfony Validator annotations, but there seems to be a conflict between the two.
Example snippet:
use Symfony\Component\Validator\Constraints as ...
0
votes
0
answers
28
views
PDAnnotationLink with image
Code snippet to add PDAnnotationLink
final PDAnnotationLink txtLink = new PDAnnotationLink();
PDBorderStyleDictionary pdBorderStyle = new PDBorderStyleDictionary();
pdBorderStyle.setStyle(...
0
votes
0
answers
20
views
SwaggerV3 - DownloadFile Endpoint
I try to make an endpoint with SwaggerV3 that's download a File in java
Here the endpoint definition in muy interface:
@Path("/file")
@Tag(name = "File")
@Produces({"...
0
votes
0
answers
47
views
Java Annotation Processing doesn't generate new class
I'm trying to do an example annotation processing.
It doesn't generate any new class after compilation, I've seen many videos about it and cannot fix the problem.
I don't know where it is. I'm using ...
0
votes
1
answer
106
views
flutter use build_runner output Configuring *** in target *** but this is not a known Builder
When I try to generate a database management file using annotations and build_runner in Flutter, the output is look like:
➜ tao_bao flutter pub run build_runner build ...